Jun 3, 2009 #1 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
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
Jun 3, 2009 #2 gmmastros Programmer Feb 15, 2005 14,901 US Read this: faq183-5207 -George "The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom Upvote 0 Downvote
Read this: faq183-5207 -George "The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
Jun 3, 2009 #3 markros Programmer May 21, 2007 3,150 US Interesting FAQs, but why I don't see the authors? Upvote 0 Downvote
Jun 3, 2009 #4 gmmastros Programmer Feb 15, 2005 14,901 US Because... Uh..... I dunno. Maybe the site owners don't want you to know. 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 Upvote 0 Downvote
Because... Uh..... I dunno. Maybe the site owners don't want you to know. 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
Jun 3, 2009 #5 ergen Programmer May 18, 2009 3 PL and here is diffrent solution http://jacek-szarapa.com/index.php?p=sql&d=2 No loops used, should be faster. Upvote 0 Downvote
and here is diffrent solution http://jacek-szarapa.com/index.php?p=sql&d=2 No loops used, should be faster.