Hi Everybody,
I have created a stored procedure which takes multiple parameters.But the date range para passed is optional on the part of the user.In the stored procedure definition i have specified para for it.Now if the user does not select the date range,the stored procedure would fail because para is mentioned in its creation but is not supplied by the user,as he has not selected it.
Eg: mySp para1,para2,para3,para4,para5,para6
Now the user selects only the 1,2,5,6 values to be shown in the report.the stored procedure will give error.
It is important.Please can anyone solve my query?????
Thanx
I have created a stored procedure which takes multiple parameters.But the date range para passed is optional on the part of the user.In the stored procedure definition i have specified para for it.Now if the user does not select the date range,the stored procedure would fail because para is mentioned in its creation but is not supplied by the user,as he has not selected it.
Eg: mySp para1,para2,para3,para4,para5,para6
Now the user selects only the 1,2,5,6 values to be shown in the report.the stored procedure will give error.
It is important.Please can anyone solve my query?????
Thanx