Click here to Skip to main content
16,016,562 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

Can anyone tell me how to connect DB in SQL 2005 from VB6 using ODBC ???

thank you
Nazeem
Posted

1 solution

Hi Nadeem,
the simplest way is to use DSN.
Go to control panel, select administrative tools then Open Database connectivity.
In that create a DSN for SQL Server and user that DSN in your code.

Regards.
Jitendra
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900