using System; using System.Data.SqlClient; class Baasiproov1c{ public static void Main(string[] arg){ string constr="Data Source=RINDE\\SQLEXPRESS;"+ "Initial Catalog=proovibaas; "+ "Integrated Security=SSPI; Persist Security Info=False"; string lause="INSERT INTO inimesed (eesnimi) VALUES ('Siiri')"; SqlConnection cn=new SqlConnection(constr); cn.Open(); SqlCommand cm = new SqlCommand(lause, cn); cm.ExecuteNonQuery(); Console.WriteLine("Andmed lisatud"); cn.Close(); } } /* D:\kodu\0606\dotnet>Baasiproov1c Andmed lisatud */