Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 List values in a parameter

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-12-07 : 09:27:07
Jeff writes "I would like to be able to past a list into a stored procedure where the procedure uses the in command. The procedure will look like this:

create procedure sp_test(@parm varchar(100)) as

select *
from table1
where key in (@parm)

I cannot figure out how to execute the procedure to make this work. I can send in one value, but not several for the in list."
   

- Advertisement -