I have a scheduler setup where the datasource select command also has a control parameter being passed in from a combo box. The generated execute_sql statement does not seem to work and sql server complains about parameter not being passed in. I have tried executing the generated statement manually in sql server and the result is the same. The code is bellow:
SelectCommand="EXEC Scheduler.GetAppointments"
<SelectParameters>
<asp:ControlParameter ControlID="cmbProviderSort" DbType="Int32" ConvertEmptyStringToNull="true" DefaultValue="-1"
PropertyName="SelectedValue" Name="a" />
</SelectParameters>
The generated statement from this is : exec sp_executesql N'EXEC Scheduler.GetAppointments',N'@a int',@a=26
If i try and execute that statement on sql server it complains the @a parameter is not being passed.
Thanks