how to stored procedure sql server 2008 and c#
how to stored procedure sql server 2008 and c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shivanand ArurPosted Oct 15, 2012, 6:54 AM
Kunal VaishyaPosted Oct 15, 2012, 6:14 AM
Create the StoreProcedures in Sql Server and Create SqlDataCommand and assign that Procedures into that after you can Execute the Command or Fill the Command
In Sql
--------------------------
Create Procedures PrcEmployeeInsert
As
Insert Statement
-------------------------------
In C#
System.Data.SqlClient.SqlCommand ObjCmd = new System.Data.SqlClient.SqlCommand();
ObjCmd.CommandType = System.Data.CommandType.StoredProcedure;
ObjCmd.CommandText = "PrcEmployeeInsert";
ObjCmd.Connection.ConnectionString = "ConnectionString";
ObjCmd.ExecuteNonQuery();
amirh karimiPosted Oct 15, 2012, 7:28 AM
amirh karimiPosted Oct 15, 2012, 7:28 AM