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 an example of form?
Which method grants a lock on a resource?
What are the advantages of form?
Name the property which is used to lock a textbox to enter data?
Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.
Where to use new keyword other than create instance?
What are window applications?
What are windows based applications?
What is form application?
What is a windows forms application?
What is difference between winforms and windows forms?
What is the full form of gac?
What is a database form?
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 are controls in windows forms?