Groups | Blog | Home
all groups > inetserver asp general > may 2004 >

inetserver asp general : Server.CreateObject("ADODB.Errors") fails


George Hester
5/30/2004 10:52:49 PM
with Invalid ProgID. For additional information specific to this message =
please visit the Microsoft Online Support site located at: =
http://www.microsoft.com/contentredirect.asp.=20

My other Server.CreateObject's work for other ADODB objects but not for =
this one. Any ideas why and how to fix? =20
Windows 2000 Server SP3.

Thanks.

--=20
George Hester
Aaron [SQL Server MVP]
5/30/2004 11:43:26 PM
You can use ADODB.Errors as an object in VB, but I don't believe this is
exposed to ASP. I have only seen the errors collection of ADODB.Connection
being used.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
(Reverse e-mail to reply.)





[quoted text, click to view]
with Invalid ProgID. For additional information specific to this message
please visit the Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.

My other Server.CreateObject's work for other ADODB objects but not for this
one. Any ideas why and how to fix?
Windows 2000 Server SP3.

Thanks.

--
George Hester
__________________________________

Egbert Nierop (MVP for IIS)
6/1/2004 9:58:09 PM
[quoted text, click to view]

The Errors collection is non-creatable, which means that the factory for
creating that collection is not in your hands but in the hands of ADODB
itselves... :)


TO fetch one do this

Set myErrors = myConn.Errors
For each Er in myErrors
Response.Write er.Description
Response.Write "<BR>"
Response.Write er.Source
Next

[quoted text, click to view]
AddThis Social Bookmark Button