Hi ... I am using the following scripts to execute a store procedure in SQL Server. There are more than 30 CreateParameter in this statement. I just show a few.
SET Conn1 = Server.CreateObject("ADODB.Connection"
Conn1.ConnectionTimeout = 60
Conn1.Open "myODBC", session("userid"
, session("password"
Set oCmd = Server.CreateObject ( "ADODB.Command" )
With oCmd
.ActiveConnection = Conn1
.CommandType = adCmdStoredProc
.CommandText = "p_exdr0203_REV01"
.Parameters.Append .CreateParameter ( "RETURN_VALUE", adInteger, adParamReturnValue )
.Parameters.Append .CreateParameter ( "@AR_EDRSite", adChar, adParamInput, 2, session("EDRSite"
)
.Parameters.Append .CreateParameter ( "@AR_Product", adChar, adParamInput, 30, DB_MPN )
.Parameters.Append .CreateParameter ( "@AR_Package", adChar, adParamInput, 12, DB_Package )
End With
oCmd.Execute , , adExecuteNoRecords
IF CStr( oCmd.Parameters( "RETURN_VALUE" )) = 0 THEN
Response.Write "<TD class=stdfont NOWRAP><FONT color=BLUE>Success !</FONT></TD>"
ELSE
Response.Write "<TD class=stdfont NOWRAP><FONT color=RED>" & CStr( oCmd.Parameters( "RETURN_VALUE" )) & "</FONT></TD>"
END IF
Set oCmd = Nothing
Set Conn1 = Nothing
My question is, what is the total CreateParameter we allow to use and I can't execute this statement at all. The error message I am getting is,
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
[Microsoft][ODBC SQL Server Driver]Optional feature not implemented
Any help ?
SET Conn1 = Server.CreateObject("ADODB.Connection"
Conn1.ConnectionTimeout = 60
Conn1.Open "myODBC", session("userid"
Set oCmd = Server.CreateObject ( "ADODB.Command" )
With oCmd
.ActiveConnection = Conn1
.CommandType = adCmdStoredProc
.CommandText = "p_exdr0203_REV01"
.Parameters.Append .CreateParameter ( "RETURN_VALUE", adInteger, adParamReturnValue )
.Parameters.Append .CreateParameter ( "@AR_EDRSite", adChar, adParamInput, 2, session("EDRSite"
.Parameters.Append .CreateParameter ( "@AR_Product", adChar, adParamInput, 30, DB_MPN )
.Parameters.Append .CreateParameter ( "@AR_Package", adChar, adParamInput, 12, DB_Package )
End With
oCmd.Execute , , adExecuteNoRecords
IF CStr( oCmd.Parameters( "RETURN_VALUE" )) = 0 THEN
Response.Write "<TD class=stdfont NOWRAP><FONT color=BLUE>Success !</FONT></TD>"
ELSE
Response.Write "<TD class=stdfont NOWRAP><FONT color=RED>" & CStr( oCmd.Parameters( "RETURN_VALUE" )) & "</FONT></TD>"
END IF
Set oCmd = Nothing
Set Conn1 = Nothing
My question is, what is the total CreateParameter we allow to use and I can't execute this statement at all. The error message I am getting is,
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
[Microsoft][ODBC SQL Server Driver]Optional feature not implemented
Any help ?