Answer Posted / vishnu
System.Data.SqlClient.SqlConnection sqlConnection1 =
new System.Data.SqlClient.SqlConnection("YOUR CONNECTION
STRING");
System.Data.SqlClient.SqlCommand cmd = new
System.Data.SqlClient.SqlCommand();
cmd.CommandType = System.Data.CommandType.Text;
cmd.CommandText = "INSERT Region (RegionID,
RegionDescription) VALUES (5, 'NorthWestern')";
cmd.Connection = sqlConnection1;
sqlConnection1.Open();
cmd.ExecuteNonQuery();
sqlConnection1.Close();
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is form description?
Is typeform free?
Explain how to net forms the windows?
How insert record in the database?
What are the properties of datacontrol?
how see report periviwe
Explain how to add resources during runtime?
Explain how to get records from a database?
What is form record?
What is a windows based application?
What is window form application?
What is the advantage of a form?
Which method of the messagebox class is used to display a message in the message box?
Which property of the errorprovider control automatically sets to the form to which?
Explain something about crystal report in brief?