Connection String for Btrieve

I am trying to find a connection string to use to connect to a Btrieve Database.
I am using a Driver from Merant and developing VB6 programs which connect through DSN's.  Thus far I have just been creating the DSN's manually but now a program of mine is being distributed on a larger scale and I need to eliminate the extra process of having to create DSN's through the ODBC administrator.  I have found connection strings for Dbase, and Access but not for Btrieve.  I have also found some samples of creating DSN's in code but could not get them to work properly.  Any Ideas would be appreciated.


David H
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

How about using File DSN's that can be distributed with the installation?
DHOPKINSAuthor Commented:
Thanks, I will look into that. System DSN information seems to be held in the registry, I assume that file DSN'S are not, I will create one and search to locate its path.  I have discovered how to edit the registry, and create the DSN that way as well.  

Thanks David H.

You are right.  The file DSN is stored in a separate file.

Kevin Felichko
Just examine the connect string returned from your rdo or ado connection object.connect property under debug when you have your code running on a manually created DSN.  You can generate this string in code, save it and read it from a file, or save/read from your own registry keys in code.  Easiest is to create a file dsn through the ODBC driver manager, then copy that to your client system, as well as using the same path for your btrieve files on the client system.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.