You are here: Re: Stored procedure with unknown numer of paramters, how? « MsSQL Server « IT news, forums, messages
Re: Stored procedure with unknown numer of paramters, how?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация