|
It establishes connection. The connection helps identify the data base server, the data base name, user name, password, and other parameters that are required for connecting to the data base.
Example: SqlConnection conn = new SqlConnection( "Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI");
|