G
Guest
I have a typed DataSet with say 50 fields in it. On the form, I only show 40.
I have a stored procedure that takes in all 50 parameters. When I call
SqlDataAdapter.Update(ds.Tables(0).GetChanges(DataRowState.Modified)), I get
a SQL error back that Procedure XYZ is expecting Parameter '@myParameter'
which was not supplied.
In looking at Profiler, I can see that this parameter is being passed to SQL
Server as Default, not as the value that the field has in the Original
DataSet.
Any suggestions?
- I know that I can set the Default values inside of SQL Server, but that
isn't going to work for this situation.
Thanks in advance
I have a stored procedure that takes in all 50 parameters. When I call
SqlDataAdapter.Update(ds.Tables(0).GetChanges(DataRowState.Modified)), I get
a SQL error back that Procedure XYZ is expecting Parameter '@myParameter'
which was not supplied.
In looking at Profiler, I can see that this parameter is being passed to SQL
Server as Default, not as the value that the field has in the Original
DataSet.
Any suggestions?
- I know that I can set the Default values inside of SQL Server, but that
isn't going to work for this situation.
Thanks in advance