|
-
Dec 6th, 2007, 05:33 AM
#1
Thread Starter
Addicted Member
Can't create ADODB.Connection
I have a .vbs file which works fine on two PCs but not on a third.
It fails when it gets to this line:
Set cnn_to = CreateObject("ADODB.Connection")
All three are running XP
Error: The specified procedure could not be found
Code: 8007007F
Any clues?
Thanks
Another light-hearted post from Guru 
-
Dec 6th, 2007, 07:04 AM
#2
Re: Can't create ADODB.Connection
My guess is the ADODB drivers aren't installed. Try downloading the MDAC and see if that helps.
-
Dec 6th, 2007, 07:06 AM
#3
Thread Starter
Addicted Member
Re: Can't create ADODB.Connection
Tried that! I downloaded MDAC 2.8 and when I ran the install it said that the components were already included in the version of the operating system (or words to that effect)
Another light-hearted post from Guru 
-
Dec 6th, 2007, 08:50 AM
#4
Re: Can't create ADODB.Connection
Are you trying to connect to an Access DB? I don't think the drivers for access are part of the newer MDAC releases.
-
Dec 6th, 2007, 09:14 AM
#5
Thread Starter
Addicted Member
Re: Can't create ADODB.Connection
If it was failing at the point where I open the connection string, that could be possible; but it should still create the connection object surely. I create the connection object in the same way whether I'm connecting to Access, Excel or SQL Server....
Another light-hearted post from Guru 
-
Dec 6th, 2007, 10:44 AM
#6
Re: Can't create ADODB.Connection
 Originally Posted by Guru
If it was failing at the point where I open the connection string, that could be possible; but it should still create the connection object surely. I create the connection object in the same way whether I'm connecting to Access, Excel or SQL Server....
But you are saying it is fail at this line when you are trying to create the object
Set cnn_to = CreateObject("ADODB.Connection")
I still think it may be a driver issue. For a quick test you could try creating a UDL and try connecting to the database from the machine you are having problems on.
Last edited by MarkT; Dec 6th, 2007 at 10:50 AM.
-
Dec 8th, 2007, 04:28 AM
#7
Member
Re: Can't create ADODB.Connection
Just a simple miss.
Set cnn_to = Server.CreateObject("ADODB.Connection")
-
Dec 8th, 2007, 09:08 AM
#8
Re: Can't create ADODB.Connection
If it is an ASP you need to use Server.CreateObject. For .vbs you only use CreateObject.
-
Dec 8th, 2007, 07:31 PM
#9
Thread Starter
Addicted Member
Re: Can't create ADODB.Connection
It's a .vbs and it works fine on two computers just not on the third one!
Jeeze!
Another light-hearted post from Guru 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|