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 are the forms of graphics?
Which property is used to specify the use of an element in the user interface and reports it to the accessibility aids?
Which property of the progressbar control specifies the amount to increment the current value of the control?
How is anchoring different from docking?
Explain about crystal report in brief?
Are windows forms still used?
how barcode print on the win form
What is the use of runworkasync() methods?
Which window displays messages for the status of various features provided in the visual studio .net ide?
Suppose I have two combobox .. And I have some items in both combobox now I need to check the item in both combobox if same item is present in both combobox I need to display that item in message box?
What is a windows based application?
What is difference between winforms and windows forms?
Name the two main categories of .net components.
Explain the need of z-order method?
How do you apply specific formatting to the data inside the cells?