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

Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.

570


Explain the difference between listbox and combo box?

513


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

527


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

615


How save rerecord in the database?

597






What are window applications?

506


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?

547


Explain about crystal report in brief?

559


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

1811


What is the synonym of form?

516


What is form and its types?

539


What are window based applications?

527


Which method grants a lock on a resource?

579


What is a windows based application?

539


Can you create a tabletype of recordset in Jet - connected ODBC dbengine?

1879