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 Posted / abdul khadeer
After creating the DSN. You can use that DSN to access the
DATA.
For Example U Can Use the ADODB connection Object to
connect the Database by using ur DSN created.
For Example Say "Con" is object ADODB.Connection
Then open ur coonection.
Con.Open "MyDSN","UserName","Password"
Now the conection created, Now u can use this connection
object with ur record set oject to retirve the data
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What type of databases you can access through ADO Data Access Object?
Explain about the basic features of Visual basic?
What are the types of line styles available in Treeview Control?
How do I implement an accelerator key for a text box?
Binary Access-method isused to access file in which manner?
How do I program the Novell NetWare API from VB?
What is Parser Bug?
When should we use recursive programming?
Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table?
How can you filter out specific type of file using file system controls?
How would you create Visual basic Document file?
What is the use of Visual Basic Document file?
How do I get the number of free bytes on a disk?
what are the Types of LockEdits in RDO?
How would you use ActiveX Dll and ActiveX Exe in your application?