1

In vb.net I am using password protected database with following connection string

connetionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\vai\vaiDB.mdb;Jet OLEDB:Database Password=secret;"

Database access works fine on the development machine.

But when i copy the exe and the database file on the user machine

2 Answers 2

2

If your DB is in the right location, what error message are you getting?

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

1 Comment

I used try and catch but using it i could not get the error taking place. How to catch the errors through code so that errors can be caught when exe is run?
1

Opening an Access database (.MDB) creates a temporary .LDB file in the same directory. Does the user logged in to the target PC have write permissions to directory C:\vai\?

1 Comment

yes the user has the permission to create the temporary files.

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.