What is sequence of code in retrieving data from database?

Answer Posted / chandra

system.data.oledb

dim oledb as new oledbconnection
oledbconnection1.open()
dim com as new oledbcommand("select empname from emp where
empid=100".oledbconnection)
dim dr as oledbdatareader=com.executereader()
if dr.read() then
textbox1.text=dr(0)
end if

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use MSSql as backend in asp.net...if yes then How.?

781


What are query strings used for?

731


What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

726


Define managed code and managed data in .net?

699


How you will handle session when deploying application in more than a server?

833


What is session start?

716


What are session objects?

729


What is server side in asp.net?

703


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

741


What is the difference between cookie and session?

701


What does asax stand for?

739


What is caching? Explain.

732


What are the three parts of an http response?

700


Can you explain one critical mapping?

737


List all templates of the repeater control.

749