We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Deploying an Application

Gary2397
Gary2397 asked
on
Medium Priority
316 Views
Last Modified: 2010-05-01
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.
Comment
Watch Question

Manager, IT
CERTIFIED EXPERT
Commented:
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"
myConnection.Open(connectionString)


OLEDB Example

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.