Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL - Connect to pwd protected database

Status
Not open for further replies.

dwlerwill

Technical User
May 25, 2001
329
I need to connect to a database on access but it is password protected. I can not seem to get the code right to send the password with the connection string

I have

db.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=S:\RESPONSE\Horizon\Data Store\Horizon_Tables.mde; pwd=HeLlO"

But it comes back with the error

Couldn't find installable ISAM. Can someone help with this.


David Lerwill
"If at first you don't succeed go to the pub"
 
My usual method for dealing with an error message that I don't understand is to stick it into Google search engine. In this case you get quite a number of MSDN references, listing several alternatives, depending on your circumstances.

You can start from here:
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Why aren't you using:

connectionname.ConnectionString = "Provider=SQLOLEDB;Data Source=slh_helpdesk;User ID=sa;Password=sa;Initial Catalog=databasename"

connection.Open

I'm not sure if this would work in your version on Vb, but it works great for me in VB6.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top