:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Microsoft Related >> ADO.NET


 Visual Basic interview questions  Visual Basic Interview Questions (615)
 C Sharp interview questions  C Sharp Interview Questions (722)
 ASP.NET interview questions  ASP.NET Interview Questions (1444)
 VB.NET interview questions  VB.NET Interview Questions (151)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (199)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (33)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
explain connection less and with connection?diference 
between data reader,data set,data adapter? can we use data 
reader,data set in a single application? if yes explain 
with simple code,if no explain?
 Question Submitted By :: ADO.NET
I also faced this Question!!     Answer Posted By  
# 1
in connection less architecture connection to the database
need not be persist till the end of the process.after
fetching the data form database it is pushed in database
object called dataset and connection object need not to be
persist and its closed. and the data will be available from
the dataset.

data reader - ADO.NET DataReader to retrieve a read-only,
forward-only stream of data from a database. Using the
DataReader can increase application performance and reduce
system overhead because only one row at a time is ever in
memory.Connection to the database is maintained till the is simply like an ado contains only one
table at a is much faster than dataset.

dataset - is used to hold the data from the database along
with their relation. it is connection less also
persist the value which are retrieved form the database.
it is a bit bulky gives both forward and backward
access to data. it uses can consist more than one
table.we have atrribtes for the dataset


an adapter object is used to fill the data from the database.

dataadapter - dataadapter is a database object which
used to fill the dataset object with data from the database.
Is This Answer Correct ?    33 Yes 2 No
# 2
above exp. is excellent for connection less and connection
data adapter performs almost five steps
1- open(create)connection
2- fatch the data
3- generate xml file of data
4- fill xml data file into the dataset by fill()method
5- closed the connection.
Is This Answer Correct ?    18 Yes 0 No
Prabhat Saxena(lmp)

Other ADO.NET Interview Questions
  Question Asked @ Answers
once data is fetched into dataset connection gets closed. but in datareader connection is always maintained...then why datareader is fast and mainly recommended ?   2
What is the default view of Data Grid? TCS 5
can u tell me the how to get the print for the form Crea 2
Differnces between oracle 9i and sql server? Microsoft 2
What is the difference between a Dataset and DataReader? Can dataReader hold data from multiple tables? Fulcrum-Logic 3
What happens when we issue Dataset.ReadXml command?   1
what purpose of Indexing creating? directly we can search the reqired row with the help of query?what is the use of indexing?   3
OleDbDataAdapter ole=new OleDbDataAdapter(new OleDbCommand ("select * from login",oleDbConnection1)); OleDbCommandBuilder cmd=new OleDbCommandBuilder(ole); ole.Fill(dataSet11,"login"); DataRow drow=dataSet11.Tables ["login"].NewRow(); drow[0]=textBox1.Text; drow[1]=textBox2.Text; drow[2]=textBox3.Text; dataSet11.Tables["login"].Rows.Add (drow); ole.UpdateCommand=cmd.GetUpdateCommand(); ole.Update(dataSet11,"login"); MessageBox.Show("one row added"); this gives to solve it Nimaya 1
What are the steps in connecting to database? Microsoft 3
What are the different row versions available?   2
Difference between datareader and dataset? Microsoft 26
When we are running the Application, if any errors occur in the Stored Procedure then how will the server identify the errors? HCL 5
For more ADO.NET Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::