G
Guest
Hi all,
When I call a stored procedure, one of the output parameter returns a
sqldbtype.integer but when assigned to a C# int field/property I get this
error:
int myfield;
// say, parms[0] is the sql integer data
myfield = parms[0]; // creates the error.
Error 1 Cannot implicitly convert type 'System.Data.SqlClient.SqlParameter'
to 'int'
also, parms[0] is a nullable column in the database.
When I call a stored procedure, one of the output parameter returns a
sqldbtype.integer but when assigned to a C# int field/property I get this
error:
int myfield;
// say, parms[0] is the sql integer data
myfield = parms[0]; // creates the error.
Error 1 Cannot implicitly convert type 'System.Data.SqlClient.SqlParameter'
to 'int'
also, parms[0] is a nullable column in the database.