string connectionstring = "server=MUKESH-PC\\SQLEXPRESS;database=Chat;trusted_connection=yes";
SqlConnection con = new SqlConnection(connectionstring);
con.Open();
SqlCommand cmd
= new SqlCommand("insert into login values(‘mukesh’,’friend’)",
con);
cmd.ExecuteNonQuery();
con.Close();
No comments:
Post a Comment