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 window applications?
What is form and its uses?
Which of the following position is the default docking position of the statusstrip control on the form?
Name the template that is used to create a user-defined component.
How can you pause a timer control?
Is windows an application software?
Where is system windows forms dll?
What are the three states set in a checkstate property?
Which method grants a lock on a resource?
how print barcode
What is the difference between the add() and insert() methods of a listbox control?
How to split a column header in gridview using c#.net?
Suppose I am implementing one windows form. I am inserting some values into ms access. In that table 5 columns there. But I want to insert three columns only. When I am clicking another button then other two values also insert into that table?
which property is used to change to some value to access a identity column in datacontrols?
Which property of the progressbar control specifies the amount to increment the current value of the control?