Many thanks Bob
Rgds
Laphan
>-----Original Message-----
>Hi All
>
>ISP has told me that I should be using OLEDB connections
instead of ODBC to
>get better ASP > ADO > Access DB performance.
>
>After a visit to ConnectionStrings.com this OLEDB seemed
straightforward
>enough with a DB with no password and then I tried it
with DB that has a
>password ... what the hell is this all about??
>
>'Can't load application. Workgroup File something or
other or user has
>exclusive access..' What?? All I've done is add a
password to the
>Connection string's Password param.
>
>My Connection string with password is as follows:
>
>strDSN="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
>Server.Mappath("db/mydb.mdb") & ";User
Id=admin;Password=fred;"
That's not the correct connection string. Look at
connectionstrings.com again. You've provided a username
and password as if the database was using workgroup
security. You really need to do some reading about Access
security so you'll know the difference between workgroup
security and a password-secured database. Try this:
http://student.muskegon.cc.mi.us/~carlsonr/Secfaq.exe
Anyways, this is what your connection string should look
like:
With password:
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\somepath\mydb.mdb;Jet OLEDB:Database
Password=MyDbPassword;","admin", ""
HTH,
Bob Barrows