Data file

  • Is there any limit on the Data file size in SQL server. In oracle we do have a 2GB max size limit ( changed now to 4Gb but still it had problems and we had to go back to 2GB on NT). i am curious to know if there is a limit in SQL server also.

    Thanks in advance for the help

  • This is from BOL – SQL Server 2000 and gives you lots of useful capacity info.
     

    Send feedback about this pageKeyboard shortcutsSQL Server Architecture

    Maximum Capacity Specifications

    The first table specifies maximum capacities that are the same for all editions of Microsoft® SQL Server™ 2000. The second and third tables specify capacities that vary by edition of SQL Server 2000 and the operating system.

    This table specifies the maximum sizes and numbers of various objects defined in Microsoft SQL Server databases, or referenced in Transact-SQL statements. The table does not include Microsoft® SQL Server 2000™ Windows® CE Edition.

     Maximum sizes/numbers
    ObjectSQL Server 7.0SQL Server 2000
    Batch size65,536 * Network Packet Size165,536 * Network Packet Size1
    Bytes per short string column8,0008,000
    Bytes per text, ntext, or image column2 GB-22 GB-2
    Bytes per GROUP BY, ORDER BY8,060 
    Bytes per index9009002
    Bytes per foreign key900900
    Bytes per primary key900900
    Bytes per row8,0608,060
    Bytes in source text of a stored procedureLesser of batch size or 250 MBLesser of batch size or 250 MB
    Clustered indexes per table11
    Columns in GROUP BY, ORDER BYLimited only by number of bytes
    Columns or expressions in a GROUP BY WITH CUBE or WITH ROLLUP statement10
    Columns per index1616
    Columns per foreign key1616
    Columns per primary key1616
    Columns per base table1,0241,024
    Columns per SELECT statement4,0964,096
    Columns per INSERT statement1,0241,024
    Connections per clientMaximum value of configured connectionsMaximum value of configured connections
    Database size1,048,516 TB31,048,516 TB3
    Databases per instance of SQL Server32,76732,767
    Filegroups per database256256
    Files per database32,76732,767
    File size (data)32 TB32 TB
    File size (log)4 TB32 TB
    Foreign key table references per table253253
    Identifier length (in characters)128128
    Instances per computerN/A16
    Length of a string containing SQL statements (batch size)65,536 * Network packet size165,536 * Network packet size1
    Locks per connectionMax. locks per serverMax. locks per server
    Locks per instance of SQL Server2,147,483,647 (static)

    40% of SQL Server memory (dynamic)

    2,147,483,647 (static)

    40% of SQL Server memory (dynamic)

    Nested stored procedure levels3232
    Nested subqueries3232
    Nested trigger levels3232
    Nonclustered indexes per table249249
    Objects concurrently open in an instance of SQL Server42,147,483,647 (or available memory)2,147,483,647 (or available memory)
    Objects in a database2,147,483,64742,147,483,6474
    Parameters per stored procedure1,0241,024
    REFERENCES per table253253
    Rows per tableLimited by available storageLimited by available storage
    Tables per databaseLimited by number of objects in a database4Limited by number of objects in a database4
    Tables per SELECT statement256256
    Triggers per tableLimited by number of objects in a database4Limited by number of objects in a database4
    UNIQUE indexes or constraints per table249 nonclustered and 1 clustered249 nonclustered and 1 clustered

    1 Network Packet Size is the size of the tabular data scheme (TDS) packets used to communicate between applications and the relational database engine. The default packet size is 4 KB, and is controlled by the network packet size configuration option.

    2 The maximum number of bytes in any key cannot exceed 900 in SQL Server 2000. You can define a key using variable-length columns whose maximum sizes add up to more than 900, provided no row is ever inserted with more than 900 bytes of data in those columns. For more information, see Maximum Size of Index Keys.

    3 The size of a database cannot exceed 2 GB when using the SQL Server 2000 Desktop Engine or the Microsoft Data Engine (MSDE) 1.0.

    4 Database objects include all tables, views, stored procedures, extended stored procedures, triggers, rules, defaults, and constraints. The sum of the number of all these objects in a database cannot exceed 2,147,483,647.

    Maximum Numbers of Processors Supported by the Editions of SQL Server 2000

    This table shows the number of processors that the database engine in each SQL Server 2000 edition can support on symmetric multiprocessing (SMP) computers.

    Operating System

    Enterprise Edition

    Standard Edition

    Personal Edition

    Developer Edition

    Desktop Engine

    SQL Server CE

    Enterprise Evaluation Edition
    Microsoft Windows® 2000 DataCenter3242322N/A32
    Windows 2000 Advanced Server84282N/A8
    Windows 2000 Server44242N/A4
    Windows 2000 ProfessionalN/AN/A222N/A2
    Microsoft Windows NT® 4.0 Server, Enterprise Edition88282N/A8
    Windows NT 4.0 Server44242N/A4
    Windows NT 4.0 WorkstationN/AN/A222N/A2
    Microsoft Windows 98N/AN/A1Use Desktop Engine1N/AN/A
    Microsoft Windows CEN/AN/AN/AN/AN/A1N/A
    Maximum Amount of Physical Memory Supported by the Editions of SQL Server 2000

    This table shows the maximum amount of physical memory, or RAM, that the database engine in each SQL Server 2000 edition can support.

    Operating System

    Enterprise Edition

    Standard Edition

    Personal Edition

    Developer Edition

    Desktop Engine

    SQL Server CE

    Enterprise Evaluation Edition
    Windows 2000 DataCenter64 GB2 GB2 GB64 GB2 GBN/A64 GB
    Windows 2000 Advanced Server8 GB2 GB2 GB8 GB2 GBN/A8 GB
    Windows 2000 Server4 GB2 GB2 GB4 GB2 GBN/A4 GB
    Windows 2000 ProfessionalN/AN/A2 GB2 GB2 GBN/A2 GB
    Windows NT 4.0 Server, Enterprise Edition3 GB2 GB2 GB3 GB2 GBN/A3 GB
    Windows NT 4.0 Server2 GB2 GB2 GB2 GB2 GBN/A2 GB
    Windows NT 4.0 WorkstationN/AN/A2 GB2 GB2 GBN/A2 GB

    ©1988-2000 Microsoft Corporation. All Rights Reserved.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply