Deploying an Application

I have a vb6 application that I am deploying. The application uses a system DSN. When I package and deploy the application, and install it on a client, the application can not find the datasource. Is there a way to resolve this when deploying the application? Do I have to re-create the DSN on the client. Re-creating wouldn't be a good solution because it would be tedious when deploying to several clients.
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.

Muhammad KhanManager, ITCommented:
YEs... you need to create a DSN on every client machine before your application can use it...

easy way is to create it dynamically.. or use OLEDB ConnectionString within the application.. .

ODBC Example

connectionString = "driver={Microsoft Access driver (*.mdb)};DBQ="c:\company.mdb"

OLEDB Example

connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\company.mdb"

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
In addition
U can use ODBCDialog Template form which was available readily in the vb6 to read the parameters from the users. So, In future if u wish to change the server name u can easily assign the file path to there and change it easily.
Or u can store ur connection string in Registry and read it from there instead of staticly storing in your form.
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
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.