RULE FOR CREATING DATABASE IN SQL SERVER

RULE FOR CREATING DATABASE IN SQL SERVER
1. First Store value in variable then pass in Object.
 eg.
string cs = "value";  // store the value in variable
cn = new SqlConnection(cs);  // Pass the value in Object

2. Note:
   All object to be created before the Page_Load.
    SqlConnection cn;
    SqlCommand cm;
    SqlDataReader dr;

3. Note:
   Path of the DataBase is called Connection String(cs).

Popular Posts