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


Please Help Members By Posting Answers For Below Questions

Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.

1068


What is constructors and distructors.

1652


How would you add elements and pictures to listitems in listview control?

1438


Explain about manipulating the recordset object

561


Explain Types of DBCombo boxes?

594






___,_____ and ____ container objects.

1029


What is the use of command Object?What are the various types of variables?

595


what are the Differences between ActiveX Control and Standard Control?

3107


___ VB constant make the menu item in centre.

1335


Why visual basic is used?

523


To populate a single column value which dbcontrols you to use?

1566


What are the properties of datacontrol?

1519


How would you add elements in TreevieW Control?

1522


How many ways we can access file using VB?

1610


What are the rules which should be followed while naming a variable in VB?

540