Hi there,
Im trying to execute a stored procedure but i keep getting this error..
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range,
or are in conflict with one another.
If i remove the parameters from the SP and when i call it, it works fine.
Here is my code.
---------------------------------------------
dim objConn,objCmd,param
set objConn = server.CreateObject("ADODB.connection"
objConn.Open connection_string
set objCmd = server.CreateObject("ADODB.command"
objCmd.CommandText = "my_proc"
set objCmd.ActiveConnection = objConn
set Param = objCmd.CreateParameter("@test",nChar,adParamInput,100,"test"
objCmd.Parameters.Append Param
objCmd.Execute
---------------------------------------------
And this is the SP definition
---------------------------------------------
CREATE PROCEDURE my_proc
@test nchar(100)
etc.
---------------------------------------------
Can Anyone help?
Thanks,
Rich.
Im trying to execute a stored procedure but i keep getting this error..
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range,
or are in conflict with one another.
If i remove the parameters from the SP and when i call it, it works fine.
Here is my code.
---------------------------------------------
dim objConn,objCmd,param
set objConn = server.CreateObject("ADODB.connection"
objConn.Open connection_string
set objCmd = server.CreateObject("ADODB.command"
objCmd.CommandText = "my_proc"
set objCmd.ActiveConnection = objConn
set Param = objCmd.CreateParameter("@test",nChar,adParamInput,100,"test"
objCmd.Parameters.Append Param
objCmd.Execute
---------------------------------------------
And this is the SP definition
---------------------------------------------
CREATE PROCEDURE my_proc
@test nchar(100)
etc.
---------------------------------------------
Can Anyone help?
Thanks,
Rich.