Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Proedure - pass comma seperated string

Status
Not open for further replies.

Badgers

Programmer
Nov 20, 2001
187
US
Hi,

I want to pass a comma seperated into a stored procedure and use it in an IN statement like:

WHERE ID IN(@Params)

@Params = '2,4,5,6,7,8'

Without using dynamic sql, does anyone have any thoughts...?

Thanks
 
Read this: faq183-5207

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Interesting FAQs, but why I don't see the authors?
 
Because... Uh..... I dunno. Maybe the site owners don't want you to know. [wink]

I know who wrote it because the list of FAQ's make it easy to identify. Also.... at the bottom, you'll see this:

Send a Comment to ESquared About This FAQ

That's what identifies the author (believe it or not).


-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top