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 application?
What is the extension of a compiled help project file?
What is the difference between desktop application and windows application?
Which property value of the helpnavigator property will display the index for a specified topic?
How to show a ContextMenuStrip instead of cthe default ContextMenuStrip,when you rightclick on the non client area of a window's Form or when alt+space keys are pressed
Name the property which is used to lock a textbox to enter data?
how see report periviwe
How to use the FindControl() function to preselect an item in my dropdownlist?
Which property is used to specify the use of an element in the user interface and reports it to the accessibility aids?
What are windows based applications?
Where to use new keyword other than create instance?
Which method of the messagebox class is used to display a message in the message box?
Explain how barcode create in the report?
how print PGL by XML
How is anchoring different from docking?