Hi,
I want to write a single stored procedure for insert ,update, delete and that too in code behind in aspx page using c#. How do i write it please suggest.. I have read somewhere that for maintaince purpose it is good to write stored procedure in code behind instead of writing in database.

B M SuchitraPosted Nov 18, 2011, 12:57 AM
Mamta MPosted Nov 18, 2011, 12:47 AM
http://www.c-sharpcorner.com/Forums/Thread/149222/dynamically-generate-sql-query-in-code-behid-using-C-Sharp.aspx
However if that's not what you want, and you want a simple stored procedure in which the names are pre-fixed, then that's very easy. But first you need to clarify to us what you want.