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);

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Followers

Total Pageviews

Powered by Blogger.

- Copyright © 2013 DevStudent - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -