0

I m writing one application and want to make it opensource. My app uses access database, and i created manually the datasource using run->odbcad32. When I post that app in site , those who download need to run it without much efforts, and they should not need to create access file and data source.,

1.how can i create the ms access file programatically?

2.how can i create the datasource programatically?

any other ideas to do the same?

1
  • What application server or web container are you using? Commented Apr 13, 2011 at 13:08

3 Answers 3

1

Write a batch (*.bat) that start odbcad32.exe and your application.

Sign up to request clarification or add additional context in comments.

Comments

0

This sort of thing can be set outside of the application in a config file, not so different from how Spring does it. You can even give them a small gui to set this sort of thing in your application as well, either in the options or even when the application starts up for the first time.

Comments

0

It may make more sense to allow users of your application to pass in the data source.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.