SQL SERVER 列出所有資料表(Table)

列出所有資料表(Table)

USE YourDBName
GO 
SELECT *
FROM sys.Tables
GO 

列出所有檢視表(View)

SELECT *
FROM sys.views
GO 

列出所有預存程式(Stored Procedure)

SELECT *
FROM sys.procedures;

列出所有限制(Constraint)

SELECT * FROM sys.objects
WHERE type_desc LIKE ‘%CONSTRAINT’

留言

這個網誌中的熱門文章

IIS 啟用HTTP Strict Transport Security (HSTS)

解決WCF(REST)在https出現檔案找不到錯誤

Azure Web Apps 讀取憑證