Using the driver was a good idea, but I still got the same error with it. I am trying to avoid having to use a DSN because I want this app to be flexible in that users can enter their info (UID, PWD, DB) in text boxes. The goal is to have one program be able to interact with MySQL, SQL Server, and MS Access instead of compiling 3 separate versions. Any other ideas?
Main Topics
Browse All Topics





by: jonasito74Posted on 2003-08-11 at 23:18:55ID: 9127907
If you have yet definned a DSN you don't need to use the dsn name and the provider again. Just use the DSN string or a full "PROVIDER" string, ok i'll explain:
ing=DNS="m ydns"; ER=MSDASQL ;DRIVER=MY ODBC.DLL <-- the odbc driver name you are using base=datab ase";
First way: form1.adodc1.connectionstr
Second way: g_connectionstring="PROVID
;UID=username;PWD=pwd;Data
and that's all and it would work!!
I hope it will help you