PC Review


Reply
Thread Tools Rate Thread

ADODB.Connection (0x800A0E7A)

 
 
David A Butson
Guest
Posts: n/a
 
      24th Oct 2003
I am running IIS 5 and SQL Server 2000 on a Windows 2000
Server box. I have a web app written to use asp and
VBScript. I am using MDAC 2.7, too. When I try to access a
database using SQLOLEDB.1 from the VBScript I get the
message: "ADODB.Connection (0x800A0E7A)Provider cannot be
found. It may not be properly installed." I reinstalled
MDAC 2.7 with no change in the error. I moved the web app
to a different Windows 2000 Server box and it runs with NO
errors. Also the error occurs when I make a call to the
OPEN for the connection.

Thanks for any help.

Relevent code:

Function MakeConnection()

Dim dcnDB
Dim ConStr

Set dcnDB = Server.CreateObject("ADODB.Connection")

'Set up connection thru provider
ConStr = "Provider=SQLOLEDB;"
ConStr = ConStr & "UID=TOUser;"
ConStr = ConStr & "Persist Security Info=False;"
ConStr = ConStr & "Initial Catalog=" & DBName & ";"
ConStr = ConStr & "Data Source=" & DBServerName & ";"

dcnDB.ConnectionString = Constr

dcnDB.open

Set MakeConnection = dcnDB

End Function


 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      27th Oct 2003
Thanks for all of the responses. As it turned out, after 2
days of searching, I found that the real problem was that
the IUSR_<machine_name> account for IIS did not have
access to the directory that the sqloldb.dll file was in.
I found this by pure luck.

>-----Original Message-----
>I am running IIS 5 and SQL Server 2000 on a Windows 2000
>Server box. I have a web app written to use asp and
>VBScript. I am using MDAC 2.7, too. When I try to access

a
>database using SQLOLEDB.1 from the VBScript I get the
>message: "ADODB.Connection (0x800A0E7A)Provider cannot be
>found. It may not be properly installed." I reinstalled
>MDAC 2.7 with no change in the error. I moved the web app
>to a different Windows 2000 Server box and it runs with

NO
>errors. Also the error occurs when I make a call to the
>OPEN for the connection.
>
>Thanks for any help.
>
>Relevent code:
>
>Function MakeConnection()
>
> Dim dcnDB
> Dim ConStr
>
> Set dcnDB = Server.CreateObject("ADODB.Connection")
>
> 'Set up connection thru provider
> ConStr = "Provider=SQLOLEDB;"
> ConStr = ConStr & "UID=TOUser;"
> ConStr = ConStr & "Persist Security Info=False;"
> ConStr = ConStr & "Initial Catalog=" & DBName & ";"
> ConStr = ConStr & "Data Source=" & DBServerName & ";"
>
> dcnDB.ConnectionString = Constr
>
> dcnDB.open
>
> Set MakeConnection = dcnDB
>
>End Function
>
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB Connection fi.or.jp.de Microsoft Excel Programming 1 10th Sep 2009 08:38 AM
ADODB Connection fi.or.jp.de Microsoft Excel Worksheet Functions 0 9th Sep 2009 09:23 PM
Set cnn = New ADODB.Connection burl_h Microsoft Excel Programming 4 17th Feb 2009 06:55 PM
ADODB Connection Joe Delphi Microsoft Access 1 1st Sep 2006 07:32 AM
ADODB Connection =?Utf-8?B?RGFpdg==?= Microsoft Access VBA Modules 3 3rd Dec 2005 10:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:05 AM.