執行下麵代碼,將獲取ms sql server對象類型以及其說明 IF OBJECT_ID('tempdb.dbo.#type') IS NOT NULL DROP TABLE #type CREATE TABLE #type ( [type] NVARCHAR(2), [desc] NVARCHA ...
執行下麵代碼,將獲取ms sql server對象類型以及其說明
IF OBJECT_ID('tempdb.dbo.#type') IS NOT NULL DROP TABLE #type CREATE TABLE #type ( [type] NVARCHAR(2), [desc] NVARCHAR(30) ) INSERT INTO #type ([type],[desc]) VALUES (N'AF',N'聚合函數(CLR)'), (N'C',N'CHECK 約束'), (N'D',N'DEFAULT(約束或獨立)'), (N'F',N'FOREIGN KEY 約束'), (N'PK',N'PRIMARY KEY 約束'), (N'P',N'SQL 存儲過程'), (N'PC',N'程式集(CLR)存儲過程'), (N'FN',N'SQL 標量函數'), (N'FS',N'程式集(CLR)標量函數'), (N'FT',N'程式集(CLR)表值函數'), (N'R',N'規則(舊式,獨立)'), (N'RF',N'複製篩選過程'), (N'SN',N'同義詞'), (N'SQ',N'服務隊列'), (N'TA',N'程式集(CLR)DML 觸發器'), (N'TR',N'SQL DML 觸發器'), (N'IF',N'SQL 內聯表值函數'), (N'TF',N'SQL 表值函數'), (N'U',N'表(用戶定義類型)'), (N'UQ',N'UNIQUE 約束'), (N'V',N'視圖'), (N'X',N'擴展存儲過程'), (N'IT',N'內部表') SELECT [type],[desc] FROM #typeSource Code