William
Tue Jan 03 18:40:17 CST 2006
Yes, this is an interesting approach and I have another I talk about in my
book that uses a Table-type Function to parse the delimited string...
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"W.G. Ryan - MVP" <WilliamRyan@nospam.gmail.com> wrote in message
news:Oc9zAqKEGHA.2036@TK2MSFTNGP14.phx.gbl...
>
http://support.microsoft.com/default.aspx?scid=kb;en-us;555167
> "Jon" <ruffles_@msn.com> wrote in message
> news:%23MmjmMKEGHA.3892@TK2MSFTNGP10.phx.gbl...
>> Is it possible to use a parameter in conjuntion with an IN statement?
>>
>> For example, if I have the following SQL,
>> select * from table where key in ('1','2','3')
>>
>> How can I make the values in the IN be a param? If I do the following.
>> select * from table where key in (@invals)
>>
>> I can't make a parameter like so,
>> param = new sqlparameter("@invals","'1','2','3'")
>> It simply returns no results.
>>
>> Is there a way to make a parameter that will work?
>>
>> Thanks
>>
>
>