home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / sybase / 608 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1000 b   |  29 lines

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