Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kunal VaishyaRank #990 · 2K reputationPosted Oct 15, 2012, 2:14 AM EDT
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();
Shivanand ArurRank #920 · 2.3K reputationPosted Oct 15, 2012, 2:54 AM EDT
amirh karimi6 reputationPosted Oct 15, 2012, 3:28 AM EDT
amirh karimi6 reputationPosted Oct 15, 2012, 3:28 AM EDT