How to describe table in SQL Server 2008?

前端 未结 8 1537
长情又很酷
长情又很酷 2020-12-24 05:33

I want to describe a table in SQL Server 2008 like what we can do with the DESC command in Oracle.

I have table [EX].[dbo].[EMP_MAST] which

8条回答
  •  猫巷女王i
    2020-12-24 05:39

    You can use sp_columns, a stored procedure for describing the table.

    exec sp_columns TableName
    

    You can also use sp_help.

提交回复
热议问题