Labels

Friday, May 27, 2011

Counts or Limit

SQL SERVER 2008 R2:


SQL Server Database Engine objectMaximum sizes/ numbers SQL Server (32-bit)Maximum sizes/ numbers SQL Server (64-bit)
Batch size165,536 * Network Packet Size65,536 * Network Packet Size
Bytes per short string column8,0008,000
Bytes per GROUP BY, ORDER BY8,0608,060
Bytes per index key2900900
Bytes per foreign key900900
Bytes per primary key900900
Bytes per row88,0608,060
Bytes in source text of a stored procedureLesser of batch size or 250 MBLesser of batch size or 250 MB
Bytes per varchar(max), varbinary(max), xml, text, or image column2^31-12^31-1
Characters per ntext or nvarchar(max) column2^30-12^30-1
Clustered indexes per table11
Columns in GROUP BY, ORDER BYLimited only by number of bytesLimited only by number of bytes
Columns or expressions in a GROUP BY WITH CUBE or WITH ROLLUP statement1010
Columns per index key71616
Columns per foreign key1616
Columns per primary key1616
Columns per nonwide table1,0241,024
Columns per wide table30,00030,000
Columns per SELECT statement4,0964,096
Columns per INSERT statement40964096
Connections per clientMaximum value of configured connectionsMaximum value of configured connections
Database size524,272 terabytes524,272 terabytes
Databases per instance of SQL Server32,76732,767
Filegroups per database32,76732,767
Files per database32,76732,767
File size (data)16 terabytes16 terabytes
File size (log)2 terabytes2 terabytes
Foreign key table references per table4253253
Identifier length (in characters)128128
Instances per computer50 instances on a stand-alone server for all SQL Server editions.50 instances on a stand-alone server.
SQL Server supports 25 instances on a failover cluster.25 instances on a failover cluster.
Length of a string containing SQL statements (batch size)165,536 * Network packet size65,536 * Network packet size
Locks per connectionMaximum locks per serverMaximum locks per server
Locks per instance of SQL Server5Up to 2,147,483,647Limited only by memory
Nested stored procedure levels63232
Nested subqueries3232
Nested trigger levels3232
Nonclustered indexes per table999999
Number of distinct expressions in the GROUP BY clause when any of the following are present: CUBE, ROLLUP, GROUPING SETS, WITH CUBE, WITH ROLLUP3232
Number of grouping sets generated by operators in the GROUP BY clause4,0964,096
Parameters per stored procedure2,1002,100
Parameters per user-defined function2,1002,100
REFERENCES per table253253
Rows per tableLimited by available storageLimited by available storage
Tables per database3Limited by number of objects in a databaseLimited by number of objects in a database
Partitions per partitioned table or index1,0001,000
Statistics on non-indexed columns30,00030,000
Tables per SELECT statementLimited only by available resourcesLimited only by available resources
Triggers per table3Limited by number of objects in a databaseLimited by number of objects in a database
Columns per UPDATE statement (Wide Tables)40964096
User connections32,76732,767
XML indexes249249



SQL Server Utility objectMaximum sizes/numbers SQL Server (32-bit)Maximum sizes/numbers SQL Server (64-bit)
Computers (physical computers or virtual machines) per SQL Server Utility100100
Instances of SQL Server per computer55
Total number of instances of SQL Server per SQL Server Utility20012001
User databases per instance of SQL Server, including data-tier applications5050
Total number of user databases per SQL Server Utility10001000
File groups per database11
Data files per file group11
Log files per database11
Volumes per computer33



SQL Server Replication objectMaximum sizes/numbers SQL Server (32-bit)Maximum sizes/numbers SQL Server (64-bit)
Articles (merge publication)256256
Articles (snapshot or transactional publication)3276732767
Columns in a table1 (merge publication)246246
Columns in a table2 (SQL Server snapshot or transactional publication)10001000
Columns in a table2 (Oracle snapshot or transactional publication)995995
Bytes for a column used in a row filter (merge publication)10241024
Bytes for a column used in a row filter (snapshot or transactional publication)80008000


2005:


SQL Server 2005 Database Engine objectMaximum sizes/numbers SQL Server 2005 (32-bit)Maximum sizes/numbers SQL Server 2005 (64-bit)
Batch size165,536 * Network Packet Size65,536 * Network Packet Size
Bytes per short string column80008000
Bytes per GROUP BY, ORDER BY80608060
Bytes per index key2900900
Bytes per foreign key900900
Bytes per primary key900900
Bytes per row880608060
Bytes per varchar(max),varbinary(max)xmltext, or imagecolumn2^31-12^31-1
Characters per ntext or nvarchar(max)column2^30-12^30-1
Clustered indexes per table11
Columns in GROUP BY, ORDER BYLimited only by number of bytesLimited only by number of bytes
Columns or expressions in a GROUP BY WITH CUBE or WITH ROLLUP statement1010
Columns per index key71616
Columns per foreign key1616
Columns per primary key1616
Columns per base table10241024
Columns per SELECT statement40964096
Columns per INSERT statement10241024
Connections per clientMaximum value of configured connectionsMaximum value of configured connections
Database size524,258 terabytes524,258 terabytes
Databases per instance of SQL Server3276732767
Filegroups per database3276732767
Files per database3276732767
File size (data)16 terabytes16 terabytes
File size (log)2 terabytes2 terabytes
Foreign key table references per table4253253
Identifier length (in characters)128128
Instances per computer50 instances on a stand-alone server for all SQL Server 2005 editions except for Workgroup Edition. Workgroup Edition supports a maximum of 16 instances.50 instances on a stand-alone server.
SQL Server 2005 supports 25 instances on a failover cluster.25 instances on a failover cluster.
Length of a string containing SQL statements (batch size)165,536 * Network packet size65,536 * Network packet size
Locks per connectionMaximum locks per serverMaximum locks per server
Locks per instance of SQL Server5Up to 2,147,483,647Limited only by memory
Nested stored procedure levels63232
Nested subqueries3232
Nested trigger levels3232
Nonclustered indexes per table249249
Parameters per stored procedure21002100
Parameters per user-defined function21002100
REFERENCES per table253253
Rows per tableLimited by available storageLimited by available storage
Tables per database3Limited by number of objects in a databaseLimited by number of objects in a database
Partitions per partitioned table or index10001000
Statistics on non-indexed columns20002000
Tables per SELECT statement256256
Triggers per table3Limited by number of objects in a databaseLimited by number of objects in a database
UNIQUE indexes or constraints per table249 nonclustered and 1 clustered249 nonclustered and 1 clustered
User connections3276732767
XML indexes249249



SQL Server 2005 Replication objectMaximum sizes/numbers SQL Server 2005 (32-bit)Maximum sizes/numbers SQL Server 2005 (64-bit)
Articles (merge publication)256256
Articles (snapshot or transactional publication)3276732767
Columns in a table1 (merge publication)246246
Columns in a table2 (SQL Server snapshot or transactional publication)10001000
Columns in a table2 (Oracle snapshot or transactional publication)995995
Bytes for a column used in a row filter (merge publication)10241024
Bytes for a column used in a row filter (snapshot or transactional publication)80008000

No comments:

Post a Comment