Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to connect the ADO Connection using ODBC with C++ in Microsoft Visual C++ 6.0?
Posted
Updated 4-Sep-12 6:13am
v2

1 solution

The idea is to find the proper connection string. Googling a bit may help.
I found a few here:
http://www.simongibson.com/intranet/adoodbc/[^]
The question is: connect to what? Excel? MS SQL? Access?
MS SQL has a native provider for ADO, you don't need ODBC for that one.
If you want to connect to FOXPRO, look here: http://www.connectionstrings.com/visual-foxpro[^]
In general, the site http://www.connectionstrings.com[^] has lot of examples (some of them are .NET oriented).

Another page you should read: How Do I Use the Connection Object in ADO?[^]

Hope this helps,
Pablo.
 
Share this answer
 
v2
Comments
Member 9404971 5-Sep-12 0:40am    
Thanx Pablo.. I want to connect with mysql. And one more think is i want to connect with DSN and without DSN

-Alisha
Pablo Aliskevicius 5-Sep-12 1:52am    
With DSN -> use the examples in the first link
Without DSN -> http://webcheatsheet.com/asp/database_connection_to_MySQL.php
Good luck,
Pablo.

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