using System; using System.Data.SqlClient; class MainClass { static void Main(string[] args) { SqlConnection MyConnection = new SqlConnection("Data Source=(local); Initial Catalog = MyDatabase; User ID=sa;Password="); MyConnection.Open(); } }