The maximum number of elements that SQLserver can create is as follows:
up to 32767 user databases, up to 256 file groups/library, up to 32767 files/library, and 1024 fields (columns)/table.
DB2
1. Maximum number of columns for a table <= 1012 2. Maximum number of columns for a view <= 5000 3. Maximum length of a row (bytes) <= 32677 4. Maximum size of a table per partition (gigabytes) number) <= 512 5. Maximum size of index in each partition (gigabytes) <= 512 6. Maximum number of rows of table in each partition <= 4000000000 7. Longest index key (bytes) <=1024 8. The maximum number of columns in an index key <=16 9. The maximum number of indexes in a table <=32767 or memory 10. The maximum number of tables referenced in a SQL statement or view <= memory 11. A Maximum number of host variable declarations in a precompiler <= memory 12. Maximum number of host variables referenced in a SQL statement <= 32767 13. Maximum number of host variables (bytes) for insert or update <= 32767 14 . Longest SQL statement (bytes) <= 65535 15. Maximum number of elements in a select list <= 1012 16. Maximum number of predicates in a WHERE or HAVING clause <= memory 17. A GROUP BY sub Most columns in a clause <= 1012 18. Maximum total length (bytes) of all columns in a GROUP BY clause <= 32677 19. Most columns in an ORDER BY clause <= 1012 20. An ORDER BY clause The maximum total length (bytes) of all columns in the sentence <= 32677 21.Maximum size (bytes) of a SQLDA <= memory 22. The maximum number of prepared statements <= memory 23. The maximum number of cursors that can be declared in a program <= memory 24. The maximum number of cursors that can be opened at one time <= memory 25. The maximum number of tables in an SMS table space <= 65534 26. Maximum number of constraints in a table <= memory 27. Maximum level of subquery nesting = memory 28. Maximum number of subqueries in a single query = memory 29. Maximum number of values in one INSERT statement <= 1012 30. The maximum number of values of a SET sub-statement in a single UPDATE statement <= 1012 31. The maximum number of all columns (bytes) in a unique constraint <= 1024 32. The maximum number of columns referenced in a foreign key <= 16 33. The maximum total length (bytes) of a referenced column in a foreign key <=1024 34. The maximum total length (bytes) specified by a check constraint <=65535 35. The column in a partition key Maximum number <= 500 36. Maximum number of rows that can be changed in a unit of work = memory 37. Maximum number of packages = memory 38. Maximum number of constraints for a statement = memory 39. Maximum number of concurrent users on a server Number=64000 40. The maximum number of parameters in a stored procedure=32767 41. The maximum number in a user-defined function=32767 42. The maximum number of cascade triggers |