Ask a Question related to ASP Database, Design and Development.
-
Joe Abou Jaoude #1
Unable to connect to MSAccess database
i m trying to connect to msaccess database from an asp page in the same
folder several days ago without any success,so any help would me much
appreciated.
I have windows 2000 and msaccess 2000
set conn= server.CreateObject("adodb.connection")
conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE:
C:\Inetpub\wwwroot\Al\Callig.mdb"
i got this error:
Error Type:
Provider (0x80040E4D)
Authentication failed.
although there's no password for the database, then i tried this
connection string with same error result:
conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE:" &
Server.MapPath("Callig.mdb")
after doing some research, i added "Trusted_Connection=yes" to the
connection string and i got another type of error:
Error Type:
Microsoft JET Database Engine (0x80004005)
Could not find installable ISAM.
after doing some research, i checked the MDAC. i have MDAC 2.7 sp1
REFRESH, so i reinstalled it as many sites suggest it, and restat the
computer, but same problem, i m still getting the same error.
so now i don't have any clue to what to do.
any suggestion would be appreciated
THX.
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Joe Abou Jaoude Guest
-
Unable to connect to SQL server database
I am running two computers - both set up as CF servers. One a laptop which I use most of the time and the other a W2K3 server. On the laptop I am... -
#26116 [Fbk->Opn]: Unable to connect to ODBC database
ID: 26116 User updated by: andrew at howells-solicitors dot com Reported By: andrew at howells-solicitors dot com -Status: ... -
#26116 [Opn->Bgs]: Unable to connect to ODBC database
ID: 26116 Updated by: kalowsky@php.net Reported By: andrew at howells-solicitors dot com -Status: Open... -
#26116 [Opn->Fbk]: Unable to connect to ODBC database
ID: 26116 Updated by: sniper@php.net Reported By: andrew at howells-solicitors dot com -Status: Open +Status: ... -
#26116 [NEW]: Unable to connect to ODBC database
From: andrew at howells-solicitors dot com Operating system: Windows NT 4 sp6a PHP version: 4.3.4 PHP Bug Type: ODBC related... -
Ken Schaefer #2
Re: Unable to connect to MSAccess database
You need
Data Source=c:\inetpub\wwwroot\ai\callig.mdb
not
Data Source:c:\inetpub\wwwroot\ai\callig.mdb
Ensure that you set IIS permissions properly if you put you database inside
your webroot, otherwise someone can download it by doing:
http://<yourserver>/ai/callig.mdb
Best it place it in it's own separate folder, then remove IIS Read
permissions.
Cheers
Ken
"Joe Abou Jaoude" <joe30@hotmail.com> wrote in message
news:eEua72eJEHA.2660@TK2MSFTNGP09.phx.gbl...
: i m trying to connect to msaccess database from an asp page in the same
: folder several days ago without any success,so any help would me much
: appreciated.
: I have windows 2000 and msaccess 2000
:
: set conn= server.CreateObject("adodb.connection")
: conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE:
: C:\Inetpub\wwwroot\Al\Callig.mdb"
:
: i got this error:
: Error Type:
: Provider (0x80040E4D)
: Authentication failed.
:
: although there's no password for the database, then i tried this
: connection string with same error result:
:
: conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE:" &
: Server.MapPath("Callig.mdb")
:
: after doing some research, i added "Trusted_Connection=yes" to the
: connection string and i got another type of error:
:
: Error Type:
: Microsoft JET Database Engine (0x80004005)
: Could not find installable ISAM.
:
: after doing some research, i checked the MDAC. i have MDAC 2.7 sp1
: REFRESH, so i reinstalled it as many sites suggest it, and restat the
: computer, but same problem, i m still getting the same error.
:
: so now i don't have any clue to what to do.
: any suggestion would be appreciated
: THX.
:
:
: *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
: Don't just participate in USENET...get rewarded for it!
Ken Schaefer Guest
-
Joe Abou Jaoude #3
Re: Unable to connect to MSAccess database
thanks ken, it was a typo error...
about putting my database in web root, well i m using it internally, not
on a web server, so i don't have this problem of someone downloading the
database.
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Joe Abou Jaoude Guest



Reply With Quote

