Show create table tablename in SQL Server

后端 未结 3 734
心在旅途
心在旅途 2020-12-10 11:09

In MySQL it is possible to do show create table tablename

What is the SQL Server equivalent?

3条回答
  •  死守一世寂寞
    2020-12-10 11:43

    if multiple database and schema exists in SQL_Dataserver, Then you need to provide the exact table location with sp_help within single quotes.

    exec sp_help 'database_name.schema_name.table_name'
    

提交回复
热议问题