san*_*084 1 sql-server sql-server-2005 function
如何使用SQL Server Management Studio查看SQL Server数据库中的所有功能(内置)?
这将返回所有用户定义的函数.我不确定你的"内置"功能是什么意思.
SELECT *
FROM sys.objects
WHERE RIGHT(type_desc, 8) = 'FUNCTION'
Run Code Online (Sandbox Code Playgroud)
要么
SELECT * FROM sys.all_objects where type in ('FN','AF','FS','FT','IF','TF')
Run Code Online (Sandbox Code Playgroud)
以下是类型:
--AF = Aggregate function (CLR)
--C = CHECK constraint
--D = DEFAULT (constraint or stand-alone)
--F = FOREIGN KEY constraint
--PK = PRIMARY KEY constraint
--P = SQL stored procedure
--PC = Assembly (CLR) stored procedure
--FN = SQL scalar-function
--FS = Assembly (CLR) scalar function
--FT = Assembly (CLR) table-valued function
--R = Rule (old-style, stand-alone)
--RF = Replication filter procedure
--SN = Synonym
--SQ = Service queue
--TA = Assembly (CLR) trigger
--TR = SQL trigger
--IF = SQL inlined table-valued function
--TF = SQL table-valued function
--U = Table (user-defined)
--UQ = UNIQUE constraint
--V = View
--X = Extended stored procedure
--IT = Internal table
Run Code Online (Sandbox Code Playgroud)
以下是所有系统存储过程的列表:
http://msdn.microsoft.com/en-us/library/ms187961.aspx