SQL Server: Maximum character length of object names

前端 未结 3 1272
南笙
南笙 2020-12-07 21:20

What is the maximum character length of object name (e.g. constraint, column) in SQL Server 2008?

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 22:22

    You can also use this script to figure out more info:

    EXEC sp_server_info
    

    The result will be something like that:

    attribute_id | attribute_name        | attribute_value
    -------------|-----------------------|-----------------------------------
               1 | DBMS_NAME             | Microsoft SQL Server
               2 | DBMS_VER              | Microsoft SQL Server 2012 - 11.0.6020.0
              10 | OWNER_TERM            | owner
              11 | TABLE_TERM            | table
              12 | MAX_OWNER_NAME_LENGTH | 128
              13 | TABLE_LENGTH          | 128
              14 | MAX_QUAL_LENGTH       | 128
              15 | COLUMN_LENGTH         | 128
              16 | IDENTIFIER_CASE       | MIXED
               ⋮  ⋮                       ⋮
               ⋮  ⋮                       ⋮
               ⋮  ⋮                       ⋮
    

提交回复
热议问题