lasers
Technical User
- Oct 24, 2007
- 12
I have a SQL stored procedure like this:
In my asp page I have this code:
I get this error:
Procedure or function myStoredProc has too many arguments specified.
What am I doing wrong? I'm assuming it has something to do with the way I pass the parameter to the stored proc.
Code:
CREATE PROCEDURE [dbo].[myStoredProc]
@NameList varchar(5000)
as
select * from dbo.MyTable
where UserName in (@NameList)
go
In my asp page I have this code:
Code:
nameList = "'john','mary','sue','dave'"
rs.open "exec myStoredProc " & nameList, dCon
I get this error:
Procedure or function myStoredProc has too many arguments specified.
What am I doing wrong? I'm assuming it has something to do with the way I pass the parameter to the stored proc.