Link to home
Start Free TrialLog in
Avatar of smantz
smantzFlag for United States of America

asked on

ODBC connection for Raiser's Edge 6 --SqlAnywher 5.0

Yes I know this product is ancient and should be somewhere however...... money......

What I would like to be able to do is create an ODBC connection so I can run a query tool to look at the DB structure.  I have the driver already and a registry entry for Sybase SQL Anywhere with driver info.  I have the EngineName, DatabaseName, DatabaseFile and all the possible ini files from the actual application for info.

When I try to connect while creating a DSN file in ODBC (Data Sources) urilitiy, it fails.

Questions:  What are the essential pieces needed to connect to this DB?

What is the best way to establish a connection?

Does anyone have the syntax for a working connection?

Basically.... Help!!!!

Thanks in advance,

-SM
ASKER CERTIFIED SOLUTION
Avatar of Joe Woodhouse
Joe Woodhouse

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of smantz

ASKER

Well, I believe one of the errors was error 193.  I'm going to rerun it this morning.  One of the items I keep finding in my readings is the need for "dbclient.exe", which does show up in the actual application files and scripting.  I'm not sure what this does but seems unique to SQL Anywhere Version 5.x.x.  I will post any errors as I work this morning.
Thanks for the response!!! -SM
Avatar of smantz

ASKER

Looking closer the actual file that is called by the OBDC.ini file in C:\System is DBCLIENW.exe.  There are 2 ini files created by application that are found in C:\SYSTEM, they are: ODBC.ini and ODBCINST.ini.  The first is rather long the, the second is shorter.  Would it help to send these along?  I'm wondering if and how I can fit these into a registry entry so the information is available to other programs like a Query Analyzer.  Does this make sense?
Avatar of Joe Woodhouse
Joe Woodhouse

That's the built-in SQL Anywhere client tool. I'm surprised the ODBC data source is looking for it... Do you still have the source install for the SQL Anywhere database? If not you might be able to use a more modern version and install the client from there.

I'm not sure I understand why the ODBC data source (in principle usable by any client) has a hard-coded reference to a particular client tool, though...
Avatar of smantz

ASKER

Sorry it has taken a while to get back.  As far as I found thus far, it seems version 5.x was the only version to use the DBclient.exe

I do have the 32 drivers as well ( they were on the app install disk) so I installed them along with the DBClient (32 bit).

I still having an issue getting the ODBC administrator in Windows to connect. I'm using win7 pro 32 bit on both the test server and the client.  The app actually has three ini files.  I'm guessing I need to take the right combination of items and maybe put the in the registry as, that is what happens these days.  

Would it help to give the information from the ini files?

--SM
The INI files are written to by the ODBC Administrator tool when you set up a data source. Better to go through that control panel I think.
Avatar of smantz

ASKER

Well, it looks like the driver disk modified the HKey_CurrentUser and created a user profile which can be seen in the ODBC administrator.  I crreated a system file to match.  Since I'm not receiving any errors there and I can enter the configuration screen, I guess they are talking to one another.  This may be a bad assumption, as I don't know if they really are connected.  When I try and create a file profile in the ODBC, itappears I get a configuration screen.  The problem is, it always asks for a user ID and password and I'm not sure if I'm getting it right.
I have a little more time tomorrow so I can try to see if I can get connected with a string.
THe ultimate goal, once again, is to be able to have a profile or string that will connect so I can use a query analyzer tool to look at DB tables.
If you have any ideas please fell free to post them.
Any errors or messages I get, I'll post.
-SM
Avatar of smantz

ASKER

Well,
I have not totally gotten things to work.  I am doing a new post.