Posted by :
Sudhir Chekuri
Saturday, 12 March 2016
SqlCommand is used to create command object using which we can execute sql command. SQL command and connection object are used as parameters while creating SqlCommand object.
Example:
//SqlCommand to get product detail
SqlCommand cmd = new SqlCommand("select * from Tbl_Orders", con);