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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.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
What is sequence of code in retrieving data from database?
 Question Submitted By :: Poojitha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is sequence of code in retrieving data from database?
Answer
# 1
using data.sqlclient;

sqlconnection cn;

cn=new sqlconnectin("user id=sa;database=pubs;data 
source=server");
cn.open();
 
Is This Answer Correct ?    1 Yes 0 No
Srujana
 
  Re: What is sequence of code in retrieving data from database?
Answer
# 2
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 ?    2 Yes 0 No
Chandra
 
 
 
  Re: What is sequence of code in retrieving data from database?
Answer
# 3
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 ?    3 Yes 0 No
Seshu
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
How can we Maintain more than on config file in one .Net web application and how? USi1
what is the difference between console.writeline &console.output.writeline?  2
I have been asked in an interview What is your LOC(Line of Code)What will be the probable answer for that HCL1
what is strong name? Microsoft2
Usage of web.configuration ? Microsoft1
Which method do you invoke on the DataAdapter control to load your generated dataset with data?  2
Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler? Visual-Soft3
In this case if exception occure in Database which catch block will be exexcuted? Microsoft1
if u r projet consist of 4 people means how can u manage the file Mind-Tree8
What is the name of the base class that all web forms will be inherited?  7
About friend and Protected friend ? MMTS3
Can a master page inherit another master page? Emphasis8
How many web.copnfig can exists in a web application & which will be used ? MMTS3
Difference between .NET components and COM components? Microsoft1
Trigger syntax in sql2000 Wipro1
What is the Web.config file used for? a) To store the global information and variable definition for the application. b) Configures the time that the server-side codebehind module is called c) To Configure the Web Server. d) To Configure the Web browser. Syntax-Softtech3
What are validator? Name the Validation controls in asp.net? How do u disable them?  2
To call a Web service which transport protocol you can use?  3
What is boxing and unboxing ? Accenture6
what is the trace in ASP.NET  4
 
For more ASP.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