haibec Posted January 17, 2008 Share Posted January 17, 2008 Hi all!I have a table customer: ID,Name,Age. Please help me scirpt (Full) insert a new record into my table Link to comment Share on other sites More sharing options...
aspnetguy Posted January 17, 2008 Share Posted January 17, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.