Benefits of Stored Procedure: Steps to work with Parameters for Stored Procedure
so here we gave the information about Benefits of Stored Procedure: Steps to work with Parameters for Stored Procedure . check below
Benefits of Stored Procedure:
It reduce the burden on the database.
Improves the Application Performance.
User gets the Quick response.
Steps to work with Parameters for Stored Procedure
Declare Command Object.
SqlCommand cmd;
Define Command Object.
Cmd=new SqlCommand(“[Procedure Name]”,con);
Declare Command Type as Stored Procedure.
cmd.CommandType=CommandType.StoredProcedure;
Add the parameter list to the Command Object.
cmd.Parameters.AddWithValue(“[Parameter Name ]”,Value);
Execute the Command Object.
cmd.ExecuteNonQuery();
Benefits of Stored Procedure:
It reduce the burden on the database.
Improves the Application Performance.
User gets the Quick response.
Steps to work with Parameters for Stored Procedure
Declare Command Object.
SqlCommand cmd;
Define Command Object.
Cmd=new SqlCommand(“[Procedure Name]”,con);
Declare Command Type as Stored Procedure.
cmd.CommandType=CommandType.StoredProcedure;
Add the parameter list to the Command Object.
cmd.Parameters.AddWithValue(“[Parameter Name ]”,Value);
Execute the Command Object.
cmd.ExecuteNonQuery();
0 comments:
Post a Comment