J
JezB
I have a dataset that I'm passing down to a data adapter which invokes
stored procedures to handle the inserts/updates/deletes. On an insert I have
some columns which are nullable, and on invoking the Insert procedure I'm
getting error
Procedure 'FlavourInsert' expects parameter '@UserID', which was not
supplied
When I have passed it to the Insert procedure as follows :
flavourAdapter.InsertCommand.Parameters.Add(new
SqlParameter("@UserID",System.Data.DbType.Int32,4,"UserID"));
How should I be passing columns to the procedure from the dataset to handle
null values ?
stored procedures to handle the inserts/updates/deletes. On an insert I have
some columns which are nullable, and on invoking the Insert procedure I'm
getting error
Procedure 'FlavourInsert' expects parameter '@UserID', which was not
supplied
When I have passed it to the Insert procedure as follows :
flavourAdapter.InsertCommand.Parameters.Add(new
SqlParameter("@UserID",System.Data.DbType.Int32,4,"UserID"));
How should I be passing columns to the procedure from the dataset to handle
null values ?