You are on page 1of 1

public static SqlConnection GetConnection()

{
string str = "Data Source=.;Initial Catalog = dbWebApp;uid =sa;Password
= 1234";

SqlConnection con = new SqlConnection(str);


con.Open();
return con;
}

You might also like