Jump to content

Insert a record in C# 2003


haibec

Recommended Posts

string sql = "insert into Customers (ID, Name, Age) values('yourID','yourName','yourAge')";SqlConnection connection = new SqlConnection(yourConnectionString);SqlCommand command = new SqlCommand(sql, connection);connection.Open();command.ExecuteNonQuery();connection.Close();

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...