how save recoreed in the database

Answer Posted / y.gangi reddy

SqlConnection cn = new SqlConnection("user id=sa;pwd=xxx;database=yyy;data source=.");
SqlDataAdapter da = new SqlDataAdapter("select * from tablename", cn);
DataSet ds = new DataSet();
da.Fill(ds, "tablename");

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between listindex and tab index?

627


How can you pause a timer control?

734


Which of the following position is the default docking position of the statusstrip control on the form?

676


Name the event that enables the user to prevent shifting of focus from control until all the validation rules have been met.

594


What is a database form?

567






Is windows an application software?

618


Which method grants a lock on a resource?

681


What are window applications?

583


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

656


What is the synonym of form?

590


Which event occurs when a user drags an item in a treeview or listview control?

635


Which property of the errorprovider control automatically sets to the form to which?

629


Explain how save rerecord in the database?

666


Which window displays messages for the status of various features provided in the visual studio .net ide?

635


Explain about crystal report in brief?

625