If I have a Select statement like this in my C# code:
Select * From foods Where foodgroup In (@.foodgroup)
And I want @.foodgroup to have these values ... "meat", "dairy", fruit", what is the correct way to add the parameter?
I tried
meat, dairy, fruit
'meat', 'dairy', 'fruit'
but neither worked. Is this possible?
Please search these forums. This question has come up probably 10 times in the last few weeks.
|||I tried a search and couldn't find anything. Plus the search function here isn't very fast.
But I found the solution after doing a Google search. Thanks...
If anyone stumbles on this post, you can go here for some answers:
http://www.msdner.com/forum/thread144871.html
No comments:
Post a Comment