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)
 Dynamic SQL IN clause

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-09-20 : 23:23:50
Doug writes "Can an IN clause be created dynamically in a stored procedure? If so, how?

For example, I need to pass in a string (or array) of IDs (integers). Can I create the WHERE EmployeeID IN (...) clause by placing the IDs into the statement?

Searched your site and saw something about dynamic IN clauses, but couldn't find the article relating to it.

Thanks.
Doug"
   

- Advertisement -