I am sure it is bound by the amount of memory you have on your system. Lemme do a bit of research to see what I can find.
Main Topics
Browse All TopicsWhat is the Maximum amount of Clauses in an IN() or Exists() Statement. I need an actual reference for this information.
I need the value for SQL Server 2000, 2005 and 2008.
For Example
Select * from Whatever WHERE ID IN(1,2,3........1000,.....
Selecting from a Table is not an Option here.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
here are I find some links which supports my statements.
http://social.msdn.microso
http://bytes.com/groups/ms
OK, so after conversing with several SQL MVPs, the consensus is that there is NOT a limit to the number of items in the IN() list. However, as the number of items in the list grow, the compile time of the query will grow as well...which makes sense. This also very likely means that SQL does not internally put the values into a table and join on them.
HTH,
Tim
Business Accounts
Answer for Membership
by: RiteshShahPosted on 2009-06-08 at 05:58:35ID: 24571329
I don't think so there is any limitations, nothing is documented for it either and if there is any limitations than it yet to come in my life so far. BTW, may I know the reason why you are asking this? is there any specific purpose?