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  >>  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
 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 ?    0 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 ?    2 Yes 0 No
Seshu
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Types of objects in ASP ? Microsoft2
What is Boxing and Unboxing? Accenture4
How would one do a deep copy in .NET? TCS2
What is boxing? Misys3
can i use two web.config files of ConnectionString in One Default.aspx page Verinon-Technology-Solutions4
I have been asked in an interview What is your LOC(Line of Code)What will be the probable answer for that HCL1
Where do you store the information about the user?s locale?  1
Why Global.asax is used? Perot-Systems5
How to identify host of my system? How to identify servername of my system? How to identify domainname of my system?  2
Describe and In Process Vs Out of Process component. Which is faster? Syntax-Softtech2
Describe a diffgram ? Write any one use of that?  2
What are generics? why it is used? architecture of ASP.NET? Satyam2
RequiredFieldValidator--write code in javascript Wipro2
In which form does the dataset store data in it? Verinon-Technology-Solutions2
What is caching? What are the different types of caching?  3
what is the differance between native code & managed code?  4
How to write unmanaged code and how to identify whether the code is managed /unmanaged? Accenture4
Suppose, I have 3 pages, Page1.aspx, Page2.aspx, Page3.aspx. All pages are in diff. server. When user req. for a page, Page1.aspx opens Ist & a session established. If user req. for IIn page, second session established. Similarly, 3rd session established if user req. 3rd page. In this scenario, tot. 03 sessions are established. How we can minimize it so that it will work with only one session? Wipro1
I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do? eMids4
Which of the following hosts Can't be used to create .net Application? a) IIS b) Internet Explorer c) ASP.Net d) Windows Shell Which one is correct? CTS1
 
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