Hmmm....well, wouldn't @contenttype be varchar rather than int since it's actually a string of comma-delimited numbers?
On 8/10/05, Michael Dinowitz <[EMAIL PROTECTED]> wrote: > I have a stored procedure that will have an In clause. How do I pass a list > of integers to it? > > CREATE PROCEDURE GetNewsContent @contenttype int > AS > SELECT * > FROM Content C INNER JOIN Links L > ON C.ContentID = L.ContentID > WHERE (C.ContentType IN (@contenttype)) > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Protect your mail server with built in anti-virus protection. It's not only good for you, it's good for everybody. http://www.houseoffusion.com/banners/view.cfm?bannerid=39 Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2340 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/6 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:6 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.6 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
