Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

Well, I've run into a road block and could use some ideas. I built a program that looks at a SQL Anywhere database 9.0. It has worked fine under XP or windows 7 as long as the DB is in the 32bit ODBC directory. As the application that creates the database, not mine, puts it there. Seems like the application in W7'puts the DSN in the 64-bit directory now. I've managed to get the listing off the DSN from the 64-bit directory but when I take the DSN and put it in the connect string the error says "DSN' blah,blah,blah' does not exist.

So, I'm assuming that for some reason the connect string is missing something or my library the iAnyhere.Data.SQLAnywhere.v3.5 does not have the idea to look at the 64-bit ODBC sources.

I've tried DSN-less connect string without any luck cannot seem to geta valid connect string built. Have scowered the Internet for examples without any success.

Any ideas?

Thanks
Posted

1 solution

Try to run: C:\Windows\SysWOW64\odbcad32.exe to register new DSN source. And use this DSN name building connection string ;)
 
Share this answer
 
Comments
tharre 18-Apr-12 0:05am    
It's not I can't create a 64 bit ODBC. The issue is that the DB that i'm trying to access is 64 bit and my program is 32bit trying to read a 64 bit DSN. I can retrieve the DSN from the registry but the iAnywhere sql odbc does not find it as I'm sure it thinks it is 32 bit. I'm still investingating if i need to install 64bit SQL Anywhere tools and then grab the proper iAnywhere .net dll.

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