Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Please I need a code to add a MySQL database to the ODBC programmatically, The programme should first check to see if the database has already been added to the ODBC else it should add it. I am designing an application that will read from the a MySQL database connected to ODBC and I would have wished to do the connection programmatically instead of the user manually adding it. I will be very grateful for a help extended to me regarding this.
Posted
Comments
Chris Maunder 2-Jun-11 18:24pm    
What have you tried?

1 solution

DSN entries created would be stored in System Registry, which means if you wish to add one, you need to play with the registry setting. I have found few links that might help you achieve that. Please have a look and dont curse me if they don't work ;) :D

http://forums.ni.com/t5/LabVIEW/Creating-a-DSN-programmatically/td-p/301189[^]

http://support.microsoft.com/kb/q184608/[^]

http://support.microsoft.com/kb/q110507/[^]
 
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