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   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Visual Basic
 
 


 

 
 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
CONNECTIVITY OF SQL 2000 + VB USING ODBC.
steps i Follow-
1) Go to Control panel-->Admintrative Tools-->Double -click
Data sources(ODBC)-->click Add button-->I choose SQL server
(last option), Is it right or wrong option for connecting 
to SQL 2000.Then a new screen appears Create a New 
dataSource-->in name textbox,we can write anyname--Right or 
wrong. suppose i enter sonia, & my server name is .,so I 
enter . in server & click next button-->On the Next screen 
i have checked the option With Sql server authentication--
>Login Id-sa, Password-->Blank-->Click next button-->Next--
>Finish-->Then I click on button Test Data source-->Mesage 
Comes TESTS COMPLETED SUCCESSFULLY-->OK-->OK-->Ok.

These steps we have to do or not for Connectivity using 
ODBC.
If yes,then what after these steps we have to do??Plz reply 
me early ??Thx in advance.

 Question Submitted By :: Sonia.sardana
I also faced this Question!!     Rank Answer Posted By  
 
  Re: CONNECTIVITY OF SQL 2000 + VB USING ODBC. steps i Follow- 1) Go to Control panel-->Admintrative Tools-->Double -click Data sources(ODBC)-->click Add button-->I choose SQL server (last option), Is it right or wrong option for connecting to SQL 2000.Then a new screen appears Create a New dataSource-->in name textbox,we can write anyname--Right or wrong. suppose i enter sonia, & my server name is .,so I enter . in server & click next button-->On the Next screen i have checked the option With Sql server authentication-- >Login Id-sa, Password-->Blank-->Click next button-->Next-- >Finish-->Then I click on button Test Data source-->Mesage Comes TESTS COMPLETED SUCCESSFULLY-->OK-->OK-->Ok. These steps we have to do or not for Connectivity using ODBC. If yes,then what after these steps we have to do??Plz reply me early ??Thx in advance.
Answer
# 1
You have to use this DSN name (in your case it is sonia) in 
your VB code wherever you wish to establish a connection 
between your VB application and your SQL server 2K database.
 
Is This Answer Correct ?    0 Yes 0 No
Deepak G
 
  Re: CONNECTIVITY OF SQL 2000 + VB USING ODBC. steps i Follow- 1) Go to Control panel-->Admintrative Tools-->Double -click Data sources(ODBC)-->click Add button-->I choose SQL server (last option), Is it right or wrong option for connecting to SQL 2000.Then a new screen appears Create a New dataSource-->in name textbox,we can write anyname--Right or wrong. suppose i enter sonia, & my server name is .,so I enter . in server & click next button-->On the Next screen i have checked the option With Sql server authentication-- >Login Id-sa, Password-->Blank-->Click next button-->Next-- >Finish-->Then I click on button Test Data source-->Mesage Comes TESTS COMPLETED SUCCESSFULLY-->OK-->OK-->Ok. These steps we have to do or not for Connectivity using ODBC. If yes,then what after these steps we have to do??Plz reply me early ??Thx in advance.
Answer
# 2
You have to create the DSN programatically by using some 
code.
 
Is This Answer Correct ?    0 Yes 0 No
Ramu.m
 
 
 
  Re: CONNECTIVITY OF SQL 2000 + VB USING ODBC. steps i Follow- 1) Go to Control panel-->Admintrative Tools-->Double -click Data sources(ODBC)-->click Add button-->I choose SQL server (last option), Is it right or wrong option for connecting to SQL 2000.Then a new screen appears Create a New dataSource-->in name textbox,we can write anyname--Right or wrong. suppose i enter sonia, & my server name is .,so I enter . in server & click next button-->On the Next screen i have checked the option With Sql server authentication-- >Login Id-sa, Password-->Blank-->Click next button-->Next-- >Finish-->Then I click on button Test Data source-->Mesage Comes TESTS COMPLETED SUCCESSFULLY-->OK-->OK-->Ok. These steps we have to do or not for Connectivity using ODBC. If yes,then what after these steps we have to do??Plz reply me early ??Thx in advance.
Answer
# 3
You can used DSN Less Code here (which is more usefull 
andimportant insteated of using DSN Coz when you run that 
Application on Different PC, then you have to crete DSN 
again..)
DSN Less Code for Connection MS ACCESS: or can connect any 
db just need to change its provider:
dim con as new adodb.Connection 
con.open "provider=microsoft.jet.oledb.4.0;" & "Data 
Source= ur db path (there is no space btn Folder and File 
Name)"
 
Is This Answer Correct ?    0 Yes 0 No
Vikram
 

 
 
 
Other Visual Basic Interview Questions
 
  Question Asked @ Answers
 
How can we find out that a recordset is blank (without using recordcount property)?  4
What do you mean by provider?  1
How many system controls are available ? HCL1
Can we display only integers / numbers through the message box? Is there any constraint to do so? Infosys5
What is ActiveX Document?  1
What is DBFailError?  1
List out controls which does not have events ?  1
How does the following statements work? On Error Goto 0  3
Is it possible to call backend procedures with ADO control?  1
What is a Component?  1
What is the default property of data control?  1
What are the Style Properties of Combo Box?  1
What are the different types of Dialog Box? Apollo1
How to find the current record position in data control?  2
What is a variant data type and when would you use it?  3
How would you attach pictures in Treeview Control? HCL1
Where will we give the option explicit keyword and for what?  1
What are the tools available for Debug in VB?  2
what database you used in project? Satyam1
What is difference between datagrid and flexgrid? InfoWorld1
 
For more Visual Basic 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