ALLInterview.com :: Home Page KalAajKal.com
 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                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ADO.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
About ado.net components/objects. Usage of data adapters and
tell the steps to retrieve data ?
 Question Submitted By :: Deepa
I also faced this Question!!     Rank Answer Posted By  
 
  Re: About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data ?
Answer
# 1
ADO.NET Obj:

SqlConnection
SQlcommand
SqlDataReader
SqlDataAdapter
Dataset


Retrieving Data:

SqlConnection con = new SqlConnection("");
con.Open();
SqlCommand cmd = new SqlCommand("select * from Tbl", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
 
Is This Answer Correct ?    2 Yes 0 No
Kalirajan
 

 
 
 
Other ADO.NET Interview Questions
 
  Question Asked @ Answers
 
what purpose of Indexing creating? directly we can search the reqired row with the help of query?what is the use of indexing?  3
What is a dataset?  2
How to Handle the exceptions in Sqlsrver2000 SQL-Star3
How To Update A Column In A DataGrid Using C#.NET? I am getting InvalidCastException as (Specified cast is not valid) while updating 2nd column in a datagrid? Id,firstname,lastname are the three columns of my datagrid respectively. I wanted to edit the second column(lastname) and update it. I did the following code in DataGrid's updatecommand(),but failed to update ! Int varid=(int)DataGrid1.DataKeys[e.Item.ItemIndex]; TextBox lnm=(TextBox)e.Item.Cells[2].Controls[0]; string str=lnm.Text ; SqlCommand cmd=new SqlCommand("update customer set lastname='" + str + "' where id=" + varid + "",con); cmd.ExecuteNonQuery(); DataGrid1.EditItemIndex=- 1; DataGrid1.DataBind(); Mind-Tree2
What are the different row versions available?  2
Can you edit data in the Repeater control?  8
What is Pooling? what is data pooling? what is sql pooling? TCS1
What happens when we issue Dataset.ReadXml command?  1
Call a stored procedure from ado.net and pass parameter to it ? Keane-India-Ltd5
What is datatable?  3
what is Execute NOn Query? Protech12
how do u connect ado.net to sql server Microsystems1
How can you implement sub data grid in a master datagrid?  1
Why sql Data Reader object not created Matrix4
What is the difference between a Dataset and DataReader? Can dataReader hold data from multiple tables? Fulcrum-Logic2
What is @@rowcount and with small code snippet explain the usage? BirlaSoft4
make a login control??  1
can we have multiple datatables in a datareader ? Ness-Technologies14
Difference between datareader and dataset? Microsoft12
how to add a selected row of a gridview to another gridview without reloading the page??  1
 
For more ADO.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com