|
Posted by Erland Sommarskog on 03/30/06 01:02
Igor (jerosimic@gmail.com) writes:
> But that one works only with one categorie and i need to search for one
> or more categories at once, does anyone have a solution? Is there
> something like ellipsis (...) in C++ for MSSQL?
No. There are a couple of methods to pass lists of data to SQL Server. Tom
mention XML. For a single list, that may be a little heavy-handed. Check out
http://www.sommarskog.se/arrays-in-sql.html#iter-list-of-integers for
one alternative. Read the rest of the article to see some more.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Navigation:
[Reply to this message]
|