View the Table Definition

APPLIES TO: yesSQL Server yesAzure SQL Database yesAzure SQL Data Warehouse yesParallel Data Warehouse

You can display properties for a table in SQL Server 2017 by using SQL Server Management Studio or Transact-SQL.

In This Topic

Before You Begin

Security

Permissions

You can only see properties in a table if you either own the table or have been granted permissions to that table.

Using SQL Server Management Studio

To show table properties in the Properties window

  1. In Object Explorer, select the table for which you want to show properties.

  2. Right-click the table and choose Properties from the shortcut menu. For more information, see Table Properties - SSMS.

We are listening: If you find something outdated or incorrect in this article, such as a step or a code example, please tell us. You can click the This page button in the Feedback section at the bottom of this page. We read every item of feedback about SQL, typically the next day. Thanks.

Using Transact-SQL

To show table properties

  1. In Object Explorer, connect to an instance of Database Engine.

  2. On the Standard bar, click New Query.

  3. Copy and paste the following example into the query window and click Execute. The example returns all columns from the sys.tables catalog view for the specified object.

    SELECT * FROM sys.tables  
    WHERE object_id = 1973582069;  
    
    

For more information, see sys.tables (Transact-SQL).