Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a database and if I do not set the password, my connection works fine. When I add a database password, I get an error message "Cannot start your application. The workgroup information file is missing or opened exclusively by another user."

 

Here is my connection string:

       strCN = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
                   "Data Source='" & strDBPath & "';" & _
                   "User ID=Admin;" & _
                   "Password=" & strDBPW

 

Now if I take password off of the database and remove the & strDBPW from my connection string it works fine. Any ideas?

 

Thanks, Chester

____________________________________________

http://www.pophamcafe.com

I am starting a developers section, more tutorials than anything.

Posted

Is the password a database level password? If so your connection string is slightly wrong, instead of the UserID & password your need to use Jet OLEDB:Database Password

 

ie

strCN = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
                   "Data Source='" & strDBPath & "';" & _
                   "Jet OLEDB:Database Password=" & strDBPW

Afraits

"The avalanche has started, it is too late for the pebbles to vote"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...