What is sequence of code in retrieving data from database?

Answer Posted / srujana

using data.sqlclient;

sqlconnection cn;

cn=new sqlconnectin("user id=sa;database=pubs;data
source=server");
cn.open();

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you turn off cookies on a page of a website?

676


What is cached data phone?

750


What is state management technique?

735


Describe a Windows Service and its lifecycle ?

836


Why do we use web config?

690


Can I read the hard disk serial # of the client computer using asp.net?

742


What is round trip in asp.net?

684


How is application management and maintenance improved in asp.net 2.0?

729


What is the life-span of the items in the viewstate?

708


How do you store a value in viewstate and retrieve them?

767


How you will improve web application performance?

733


What is data caching?

743


Explain Life cycle of ASP.NET page when a request is made.

941


How can you handle unmanaged code exceptions in asp.net?

746


What is the use of view state?

716