What is sequence of code in retrieving data from database?

Answer Posted / seshu

SQLConnection conn = new
SQLConnection("DataSource=;InitialCatalog=;User Id=;Password=");
SQLCommand cmd=new SQLCommand("select * from tablename",conn);
DataAdapter da=new DataAdapter(cmd);
Dataset ds=new Dataset();
da.fill(ds,"tablename");

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do I get error message "could not load type" whenever I browse to my asp.net web site?

633


explain code with datachaching with example

1700


How do you secure your connection string information?

523


What is application Object?

595


What is the mvc model?

581






What are the various ways to send content from one page to another?

524


How do I publish my asp.net application to my isp's web server?

590


In which event of the page life cycle, is the viewstate available?

527


What language is asp.net written in?

528


What is server redirect?

551


Which object encapsulates state or data of a user?

628


What is the usage of DelegatingHandler?

593


What are the advantages of the code-behind feature?

544


What is loop in asp.net?

586


What are session state modes? List some of the important session state modes of asp.net.

537