I
i love snmp
Guys,
I have a stored procedure in SQL Server where I pass few parameters
like username, email address etc. The stored procedure simply inserts
these records into users table that has an identity column as ID.
Finally I read the @@IDENTITY variable to read the ID of newly
inserted record and returns it via an OUT parameter passed in the
stored procedure.
Now question is if I have to call this stored procedure from my C#
code, can I used DataReader for this purpose? What are the best
practices?
TIA
imak
I have a stored procedure in SQL Server where I pass few parameters
like username, email address etc. The stored procedure simply inserts
these records into users table that has an identity column as ID.
Finally I read the @@IDENTITY variable to read the ID of newly
inserted record and returns it via an OUT parameter passed in the
stored procedure.
Now question is if I have to call this stored procedure from my C#
code, can I used DataReader for this purpose? What are the best
practices?
TIA
imak