ElvisIncognito
IS-IT--Management
I'm trying to call a stored procedure:
CREATE PROCEDURE usp_osArray @Prodver numeric(9) AS SELECT Short, OS FROM platforms WHERE ProdVer= @ProdVer ORDER BY OSID DESC
using the following code:
Set cmdPassProdVer = Server.CreateObject("ADODB.Command"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
cmdPassProdVer.CommandType = adCmdStoredProc
cmdPassProdVer.CommandText = "usp_osArray"
Set parValue = cmdPassProdVer.CreateParameter("@Prodver", adVarChar, adParamInput, 9, "8001"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
cmdPassProdVer.Parameters.Append parValue
Set rsPlatforms = cmdPassProdVer.Execute
But no matter what I do, I get:
Error Type:
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/sandbox/80/matrix_template.asp, line 18
The first line of code above is line 17, so 18 is:
cmdPassProdVer.CommandType = adCmdStoredProc
I've spent hours now and I'm THOROUGHLY frustrated... This is my first attempt at using StoredProcs, and this page REALLY needs the help/boost...
CREATE PROCEDURE usp_osArray @Prodver numeric(9) AS SELECT Short, OS FROM platforms WHERE ProdVer= @ProdVer ORDER BY OSID DESC
using the following code:
Set cmdPassProdVer = Server.CreateObject("ADODB.Command"
cmdPassProdVer.CommandType = adCmdStoredProc
cmdPassProdVer.CommandText = "usp_osArray"
Set parValue = cmdPassProdVer.CreateParameter("@Prodver", adVarChar, adParamInput, 9, "8001"
cmdPassProdVer.Parameters.Append parValue
Set rsPlatforms = cmdPassProdVer.Execute
But no matter what I do, I get:
Error Type:
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/sandbox/80/matrix_template.asp, line 18
The first line of code above is line 17, so 18 is:
cmdPassProdVer.CommandType = adCmdStoredProc
I've spent hours now and I'm THOROUGHLY frustrated... This is my first attempt at using StoredProcs, and this page REALLY needs the help/boost...