To run database query is an important part to process a website or an application. In ASP.NET we take a help of a class SqlCommand. And for this you need to add a namespace System.Data.SqlClient.
The actual process to run the query in application is
SqlCommand cmd = new SqlCommand("<Store procedure name>", con);
You can pass the store procedure name or you can place the sql query insist of store procedure.
And to pass any type of arguments you need to do like this.
The actual process to run the query in application is
SqlCommand cmd = new SqlCommand("<Store procedure name>", con);
You can pass the store procedure name or you can place the sql query insist of store procedure.
And to pass any type of arguments you need to do like this.