how save recoreed in the database

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


Please Help Members By Posting Answers For Below Questions

What is form application?

619


What is the extension of a compiled help project file?

662


What is the difference between desktop application and windows application?

589


Which property value of the helpnavigator property will display the index for a specified topic?

694


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

1887






Name the property which is used to lock a textbox to enter data?

611


how see report periviwe

2414


How to use the FindControl() function to preselect an item in my dropdownlist?

1791


Which property is used to specify the use of an element in the user interface and reports it to the accessibility aids?

656


What are windows based applications?

595


Where to use new keyword other than create instance?

772


Which method of the messagebox class is used to display a message in the message box?

646


Explain how barcode create in the report?

643


how print PGL by XML

2692


How is anchoring different from docking?

684