Ask a Question related to ASP Database, Design and Development.
-
Laphan #1
OLEDB and an Access Db with a password
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;"
The strDSN is variable that I use as follows:
set oConn=Server.CreateObject("ADODB.Connection")
oConn.open strDSN
Brinkster support came up with a beauty in that if I want to use passwords
then I go back to the defunct ODBC method.
Could somebody please tell me how I sort this out so that I can
password-protect my DB.
Thanks
Laphan
Laphan Guest
-
Oracle Table Access With Oracle OLEDB Driver
If I use the Oracle client to access the Oracle database with DW 2004, it does not display any tables. If I use the Microsoft client it does work. ... -
Medium Trust and oledb access
Hi I am configuring a server for a shared hosting environment and want to lock down the server. I changed the trust level to medium but all MySQL... -
ASP --> OLEDB --> Access db ?
On Wed, 3 Mar 2004 13:06:14 -0800, ChrisB <anonymous@discussions.microsoft.com> wrote: Don't use Access. :) Access requires the user to... -
Error while using OLEDB (Jet) for Access within ASP
Hi everbody: I am getting an error (message to follow) when using the following code within ASP: cst= "Provider=Microsoft.Jet.OLEDB.4.0;Data... -
Error when trying to add an Access DB Record containing a Long Integer type field using OLEDB in ADO.Net
Hi All, I am trying to add a record to a datatable that is connected to an Access database. I had no trouble with string and date fields, but... -
Bob Barrows #2
OLEDB and an Access Db with a password
instead of ODBC to>-----Original Message-----
>Hi All
>
>ISP has told me that I should be using OLEDB connectionsstraightforward>get better ASP > ADO > Access DB performance.
>
>After a visit to ConnectionStrings.com this OLEDB seemedwith DB that has a>enough with a DB with no password and then I tried itother or user has>password ... what the hell is this all about??
>
>'Can't load application. Workgroup File something orpassword to the>exclusive access..' What?? All I've done is add aId=admin;Password=fred;">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
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:
[url]http://student.muskegon.cc.mi.us/~carlsonr/Secfaq.exe[/url]
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
Bob Barrows Guest
-
Laphan #3
Re: OLEDB and an Access Db with a password
Many thanks Bob
Rgds
Laphan
Bob Barrows <reb01501@NOyahoo.SPAMcom> wrote in message
news:0aae01c38471$52e8df70$a401280a@phx.gbl...
instead of ODBC to>-----Original Message-----
>Hi All
>
>ISP has told me that I should be using OLEDB connectionsstraightforward>get better ASP > ADO > Access DB performance.
>
>After a visit to ConnectionStrings.com this OLEDB seemedwith DB that has a>enough with a DB with no password and then I tried itother or user has>password ... what the hell is this all about??
>
>'Can't load application. Workgroup File something orpassword to the>exclusive access..' What?? All I've done is add aId=admin;Password=fred;">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
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:
[url]http://student.muskegon.cc.mi.us/~carlsonr/Secfaq.exe[/url]
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
Laphan Guest



Reply With Quote

