Dynamics AX 2012 R2 Execute Stored Procedure with Parameters
Created at 2015-03-12 Updated at 2018-05-01
During in one of my assignment, I have to call sql server stored procedure from X++ code. There is little tricky to call stored procedure with parameters. Following code will help me to call stored procedure with Parameters. Consider sp_StudentCreates a stored procedure with three parameters, first two string and last one is date.
private void InsertStudent( StudentDC _dc)