Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How to create a SqlCommand Object in ADO.Net?
SqlCommand cmd = new SqlCommand("select CategoryName from Categories", conn);
Above syntax is written to instantiating a SqlCommand object.  It takes a string parameter that holds the command you want to execute and a reference to a SqlConnection object.