dbTalk Databases Forums  

Oracle Stored Procedure error: ODBC driver does not support the requested properties.

comp.database.oracle comp.database.oracle


Discuss Oracle Stored Procedure error: ODBC driver does not support the requested properties. in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff
 
Posts: n/a

Default Oracle Stored Procedure error: ODBC driver does not support the requested properties. - 09-01-2004 , 08:27 AM






I'm calling an Oracle 10g stored procedure from an ASP file across an
ODBC connection using the Oracle (ASP code is listed below, assume
that all arguments are of correct type and value). I get the following
error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
ODBC driver does not support the requested properties.
/atx/SPTEST.ASP, line 41

Line 41 is cmd.Execute

Can anyone please shed some light on this problem? It's vexing my
soul!

Thanks!
- Jeff

Public Function UpdateFlagByKey(cn, lngKey, strField, varValue)
' Update a specific flag for a key
Dim strErr
Dim strValue
Dim cmd

set cmd = server.createobject("ADODB.Command")

' convert the variant to string
strValue = CStr(varValue)

' set the command object and command type
cmd.ActiveConnection = cn

cmd.CommandType = adCmdStoredProc

' assign stored procedure
cmd.CommandText = "ATXAMBsReading.UpdateFlagByKey"

' assign input parameters
cmd.Parameters.Append cmd.CreateParameter("myKey", adNumeric,
adParamInput, lngKey)
cmd.Parameters.Append cmd.CreateParameter("myField", adChar,
adParamInput, 50, strField)
cmd.Parameters.Append cmd.CreateParameter("myValue", adChar,
adParamInput, 50, strValue)

' execute the stored procedure
cmd.Execute

End Function

Reply With Quote
  #2  
Old   
Kingsley Idehen
 
Posts: n/a

Default Re: Oracle Stored Procedure error: ODBC driver does not support therequested properties. - 09-01-2004 , 01:40 PM






9/1/2004 9:27:25 AM

Jeff <jpaar (AT) envirosys (DOT) com> wrote in message

<91279873.0409010527.3209c731 (AT) posting (DOT) google.com>



Quote:
I'm calling an Oracle 10g stored procedure from an ASP file across
an

Quote:
ODBC connection using the Oracle (ASP code is listed below, assume

that all arguments are of correct type and value). I get the
following

Quote:
error:



Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

ODBC driver does not support the requested properties.

/atx/SPTEST.ASP, line 41



Line 41 is cmd.Execute



Can anyone please shed some light on this problem? It's vexing my

soul!



Thanks!

- Jeff



Public Function UpdateFlagByKey(cn, lngKey, strField, varValue)

' Update a specific flag for a key

Dim strErr

Dim strValue

Dim cmd



set cmd = server.createobject("ADODB.Command")



' convert the variant to string

strValue = CStr(varValue)



' set the command object and command type

cmd.ActiveConnection = cn



cmd.CommandType = adCmdStoredProc



' assign stored procedure

cmd.CommandText = "ATXAMBsReading.UpdateFlagByKey"



' assign input parameters

cmd.Parameters.Append cmd.CreateParameter("myKey", adNumeric,

adParamInput, lngKey)

cmd.Parameters.Append cmd.CreateParameter("myField", adChar,

adParamInput, 50, strField)

cmd.Parameters.Append cmd.CreateParameter("myValue", adChar,

adParamInput, 50, strValue)



' execute the stored procedure

cmd.Execute



End Function
Jeff,

The error "Microsoft OLE DB Provider for ODBC Drivers error
'80040e21' ODBC driver does not support the requested properties."
implies that the underlying ODBC Driver doesn't implement ODBC
functionality that is required by the Microsoft OLE DB to ODBC Bridge.


Here are your options as I see them:

1. Obtain / evaluate an alternative OLE DB to ODBC Bridge as the one
from Microsoft isn't your only option. The benefit here being that
you will not need to change or reconfigure your underlying ODBC
Driver and DSN combination.

An alternative OLE DB to ODBC Bridge is available at: http://uda.
openlinksw.com/oledb/st/oledb-odbc-st/ (it makes far more ODBC
Drivers usable via OLE DB clients than the one from Microsoft).

2. Obtain / evaluate an alternative ODBC Driver for Oracle (one that
implements the functionality required by the OLE DB to ODBC Bridge).

An allternative ODBC Driver for Oracle is available at:

http://uda.openlinksw.com/odbc/st/odbc-oracle-st/ (Single-Tier -
requires SQL*Net or Net8+)

or

http://uda.openlinksw.com/odbc/mt/odbc-oracle-mt/ (Multi-Tier -
doesn't require SQL*Net or Net8+ and provides enhanced enterprise
level security etc..)

To totally understand the vagueries of what is going on here you need
an ODBC diagnostic utility that can show you what calls are being
made by the ODBC Client (in this case the OLE DB to ODBC Bridge) and
where they fail in the underlying Driver.

OpenLink ODBC Scan will unveil what is happening here, along the
lines presented above. You can download this utility from:
http://oplweb.openlinksw.com:8080/download/util.vsp



Regards,



Kingsley Idehen Weblog: http://www.openlinksw.com/blog/~kidehen

OpenLink Software Web: http://www.openlinksw.com

Universal Data Access & Universal Integration Middleware Providers.


Reply With Quote
  #3  
Old   
Jeff
 
Posts: n/a

Default Re: Oracle Stored Procedure error: ODBC driver does not support the requested properties. - 09-08-2004 , 12:20 PM



Thanks for the assistance!

- Jeff

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.