ADO 2.7 is not ADO 2.7?

ADO 2.7 is not ADO 2.7?

Post by Tom van Stiphou » Thu, 05 Dec 2002 01:04:45



I have an ActiveX DLL the manufacturer tells me uses ADO 2.7.
I was able to convince my ISP to run MDAC 2.7.
Before that, I was able to create an object of type ADODB.Connection.2.5
After the upgrade, I can still do that, but I cannot create an object of
type ADODB.Connection.2.7:
<%
set x = Server.CreateObject("ADODB.Connection.2.7")
Response.Write "Creating ADODB.Connection.2.7 object: " & IsObject(x) &
"<br>"
%>
 If I try, I get this error:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/test_ado.asp, line 11
Invalid ProgID. For additional information specific to this message please
visit the Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.

However this code:
<%
set x = Server.CreateObject("ADODB.Connection")
Response.Write "ADO Version: " & x.Version & "<br>"
%>
returns ADO Version: 2.7

So which is it: the Version property returns 2.7, while I can't explicitly
create a 2.7 object.

Thank you,

-Tom.

 
 
 

ADO 2.7 is not ADO 2.7?

Post by Val Mazu » Thu, 05 Dec 2002 01:15:58


Tom,

I think you would need to use ADODB.Connection syntax to open connection. In
that case it will open connection based on latest installed version of ADO.
Otherwise you could depend on version

--
Val Mazur
Microsoft MVP



Quote:> I have an ActiveX DLL the manufacturer tells me uses ADO 2.7.
> I was able to convince my ISP to run MDAC 2.7.
> Before that, I was able to create an object of type ADODB.Connection.2.5
> After the upgrade, I can still do that, but I cannot create an object of
> type ADODB.Connection.2.7:
> <%
> set x = Server.CreateObject("ADODB.Connection.2.7")
> Response.Write "Creating ADODB.Connection.2.7 object: " & IsObject(x) &
> "<br>"
> %>
>  If I try, I get this error:
> Server object error 'ASP 0177 : 800401f3'
> Server.CreateObject Failed
> /test_ado.asp, line 11
> Invalid ProgID. For additional information specific to this message please
> visit the Microsoft Online Support site located at:
> http://www.microsoft.com/contentredirect.asp.

> However this code:
> <%
> set x = Server.CreateObject("ADODB.Connection")
> Response.Write "ADO Version: " & x.Version & "<br>"
> %>
> returns ADO Version: 2.7

> So which is it: the Version property returns 2.7, while I can't explicitly
> create a 2.7 object.

> Thank you,

> -Tom.


 
 
 

ADO 2.7 is not ADO 2.7?

Post by Nicole Calinoi » Thu, 05 Dec 2002 01:20:53


Tom,

This is almost certainly a registry issue.  Take a look at
HKEY_CLASSES_ROOT\ADODB.Connection and
HKEY_CLASSES_ROOT\ADODB.Connection.2.7.  If you don't have the latter,
there's your answer right there.  If you do have both, and both have the
same CLSID, then it may be a permissions issue on a registry key, probably
in HKEY_CLASSES_ROOT\TypeLib.

HTH,
Nicole



Quote:> I have an ActiveX DLL the manufacturer tells me uses ADO 2.7.
> I was able to convince my ISP to run MDAC 2.7.
> Before that, I was able to create an object of type ADODB.Connection.2.5
> After the upgrade, I can still do that, but I cannot create an object of
> type ADODB.Connection.2.7:
> <%
> set x = Server.CreateObject("ADODB.Connection.2.7")
> Response.Write "Creating ADODB.Connection.2.7 object: " & IsObject(x) &
> "<br>"
> %>
>  If I try, I get this error:
> Server object error 'ASP 0177 : 800401f3'
> Server.CreateObject Failed
> /test_ado.asp, line 11
> Invalid ProgID. For additional information specific to this message please
> visit the Microsoft Online Support site located at:
> http://www.microsoft.com/contentredirect.asp.

> However this code:
> <%
> set x = Server.CreateObject("ADODB.Connection")
> Response.Write "ADO Version: " & x.Version & "<br>"
> %>
> returns ADO Version: 2.7

> So which is it: the Version property returns 2.7, while I can't explicitly
> create a 2.7 object.

> Thank you,

> -Tom.

 
 
 

ADO 2.7 is not ADO 2.7?

Post by Stephen How » Thu, 05 Dec 2002 04:36:20




Quote:> I have an ActiveX DLL the manufacturer tells me uses ADO 2.7.
> I was able to convince my ISP to run MDAC 2.7.
> Before that, I was able to create an object of type ADODB.Connection.2.5
> After the upgrade, I can still do that, but I cannot create an object of
> type ADODB.Connection.2.7:

Yes and that is normal. All the objects of the latest version do not have a
numeral. If ever ADO 2.8 came into existence and there was a difference
between the Connection object for 2.7 vs 2.8 (an extra property or method
say), then you will find you can create a ADODB.Connection.2.7 object but
you will not be able create a ADODB.Connection.2.8 object.

The whole point is that if people want to use "the latest version of the
connection object", they can. It has no numeral.

The chances are you had MDAC 2.6 installed before.

Stephen Howe

 
 
 

ADO 2.7 is not ADO 2.7?

Post by Tom van Stiphou » Thu, 05 Dec 2002 06:01:29


Hi Stephen,

I disagree. On two of my own computers (both win2000pro, everything up to
date) I can create the 2.5, 2.6, 2.7, and <none> versions of
ADODB.Connection. The latter's Version property shows 2.7
However at my ISP I can create 2.5 and <none>, with the latter's Version
property shows 2.7

I'm leaning towards Nicole's suggestion that somehow the ISP's installation
is corrupt. I'm going to ask them to run Component Checker to verify this.

-Tom.




> > I have an ActiveX DLL the manufacturer tells me uses ADO 2.7.
> > I was able to convince my ISP to run MDAC 2.7.
> > Before that, I was able to create an object of type ADODB.Connection.2.5
> > After the upgrade, I can still do that, but I cannot create an object of
> > type ADODB.Connection.2.7:

> Yes and that is normal. All the objects of the latest version do not have
a
> numeral. If ever ADO 2.8 came into existence and there was a difference
> between the Connection object for 2.7 vs 2.8 (an extra property or method
> say), then you will find you can create a ADODB.Connection.2.7 object but
> you will not be able create a ADODB.Connection.2.8 object.

> The whole point is that if people want to use "the latest version of the
> connection object", they can. It has no numeral.

> The chances are you had MDAC 2.6 installed before.

> Stephen Howe

 
 
 

ADO 2.7 is not ADO 2.7?

Post by Stephen How » Sat, 14 Dec 2002 04:23:14




Quote:> Hi Stephen,

> I disagree.

I disagree with myself, I think :-). I pulled my post shortly after posting.
You must have caught it inbetween :-). What changed my mind was surfing the
registry. Having said that, there is no 2.7 component in the DLL so I guess
2.7 is mapped onto the latest unversioned components.

Quote:> I'm leaning towards Nicole's suggestion that somehow the ISP's
installation
> is corrupt. I'm going to ask them to run Component Checker to verify this.

Good luck. Let us know what the problem is.

Stephen Howe

 
 
 

1. Difference between ADO 2.7 and MDAC 2.7????

Hi there,

What is the difference between ADO 2.7 and MDAC 2.7? Are
they one and the same? I installed MDAC 2.7 and it simply
updated all my ADO DLL's to v2.70.9001.0. However, I do
not see an MSADO27.DLL, the latest I see is MSADO26.DLL.

Can someone please clear this up for me?

Thank you,

Robert

2. OLE delphi <-----> word (office 97)

3. ADO.NET Component and VB6 client - ADO.Net or ADO 2.7

4. Delphi & SQL Full-Time Job in Philly

5. ADO.NET vs. ADO 2.7

6. Urgent C/S survey

7. Version difference from ADO 2.5 to ADO 2.7

8. sybperl for windows NT?

9. Error when using AddNew method in ADO (using ADO 2.7 SP1 from VB 6 SP4)

10. ADO 2.7, MS OleDb for Oralce, prepared is not working

11. ADO 2.6, 2.7 commandtimeout not working

12. MDAC 2.7 RTM vs MDAC 2.7 sp1 (winxp)

13. Help. (dBASE III) I can use ADO 2.7 but not ADOX 2.7...