Posted by : Sudhir Chekuri Saturday, 12 March 2016

SqlConnection is a class used to create an object using which connection to the server is opened and closed. Connection string is used by SqlConnection object to give the details of servername, database name and authentication details.

Example:
//SqlConnection

        SqlConnection con = new SqlConnection(@"Data Source=WINBC250150-JUL\SQLEXPRESS;Initial Catalog=Db_RestaurantMgmtSystem;Integrated Security=True");

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 -