home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!paladin.american.edu!europa.asd.contel.com!darwin.sura.net!rsg1.er.usgs.gov!ornl!afh
- From: afh@ornl.gov (HUNTLEY JR A F)
- Subject: Re: Max IN clause
- Message-ID: <1993Jan6.130957.21067@ornl.gov>
- Summary: T-SQL IN clause maximum params is 250
- Organization: Oak Ridge National Laboratory
- References: <ROB.93Jan5115202@fosters.med.utah.edu>
- Distribution: comp.database.sybase
- Date: Wed, 6 Jan 1993 13:09:57 GMT
- Lines: 16
-
- In article <ROB.93Jan5115202@fosters.med.utah.edu> rob@fosters.med.utah.edu (Rob Sargent) writes:
- >
- >Has anyone seen any doc on How large the IN () clause can be if stack with constants.
- >
-
- The maximum number of items that can be put into an IN list is 250.
- If you go beyond this you get the message:
-
- Msg 404, Level 19, State 1:
- Too many ANDs or ORs in expression (limit 250 per expression level).
- Try splitting query or limiting ANDs or ORs.
-
- You may also get an unexpected EOF from the server.
-
- Al Huntley
- afh@ornl.gov
-