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

What is an imagemap in asp.net?

751


What are cookies in asp.net?

782


What is the sequence in which ASP.NET events are processed?

684


Explain what is clr?

812


Which object is used to encapsulate the state of the client and the browser in ASP.NET?

790


Explain different types of validators in asp.net?

716


What is the difference between page.registerclientscriptblock and page.registerstartupscript?

647


What is asp short for?

740


What are the differnt types of handler in ASP.NET?

725


What is the difference between exe and dll?

779


Can you use Web API with ASP.NET Web Form?

869


How do you handle server controls?

860


What is session management in web application?

752


What is mvc in asp.net tutorial? : Asp.Net MVC

780


What is client side state management?

686