Hello people
Here’s the problem.
ASP Page. Connection to SQL 2000 databases using ODBC connectivity.
Calling stored procedure:
CREATE PROCEDURE sp_mySp @HowMany int OUTPUT AS
select * from my_view
where BALANCE < 0
set @HowMany =@@RowCount
How do I call this stored procedure from the ASP page?
I have tried the following and variations on the theme but I get the following error
'Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.'
set NewdbObj=server.createObject("ADODB.connection"
NewdbObj.open session("myCONNECTION"
set cmd=server.createObject("ADODB.command"
cmd.ActiveConnection = NewdbObj
cmd.CommandText = " sp_mySp "
cmd.Parameters.Append cmd.CreateParameter("@HowMany", adInteger, adParamOutput)
cmd.Execute
NewdbObj.close
A helping hand here would be very appreciated
Here’s the problem.
ASP Page. Connection to SQL 2000 databases using ODBC connectivity.
Calling stored procedure:
CREATE PROCEDURE sp_mySp @HowMany int OUTPUT AS
select * from my_view
where BALANCE < 0
set @HowMany =@@RowCount
How do I call this stored procedure from the ASP page?
I have tried the following and variations on the theme but I get the following error
'Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.'
set NewdbObj=server.createObject("ADODB.connection"
NewdbObj.open session("myCONNECTION"
set cmd=server.createObject("ADODB.command"
cmd.ActiveConnection = NewdbObj
cmd.CommandText = " sp_mySp "
cmd.Parameters.Append cmd.CreateParameter("@HowMany", adInteger, adParamOutput)
cmd.Execute
NewdbObj.close
A helping hand here would be very appreciated