SQL Server数据库引擎.NET CLR环境数据库管理员向导(2)
2007-05-15 09:27:52 来源:WEB开发网核心提示: 标量函数-- List CLR Scalar FunctionsSELECT schema_name(so.schema_id) + N'.' + so.[name] AS [Name], so.create_date, so.modify_date, sa.permiss
标量函数
-- List CLR Scalar Functions
SELECT schema_name(so.schema_id) + N'.' + so.[name] AS [Name]
, so.create_date, so.modify_date
, sa.permission_set_desc AS [Access]
FROM sys.objects AS so
INNER JOIN sys.module_assembly_usages AS sau
ON so.object_id = sau.object_id
INNER JOIN sys.assemblies AS sa
ON sau.assembly_id = sa.assembly_id
WHERE so.type_desc = N'CLR_SCALAR_FUNCTION'
表值函数
-- List CLR Table Functions
SELECT schema_name(so.schema_id) + N'.' + so.[name] AS [Name]
, so.create_date, so.modify_date
, sa.permission_set_desc AS [Access]
FROM sys.objects AS so
INNER JOIN sys.module_assembly_usages AS sau
ON so.object_id = sau.object_id
INNER JOIN sys.assemblies AS sa
ON sau.assembly_id = sa.assembly_id
WHERE so.type_desc = N'CLR_TABLE_VALUED_FUNCTION'
用户定义聚合
-- List CLR Aggregate Functions
SELECT schema_name(so.schema_id) + N'.' + so.[name] AS [Name]
, so.create_date
, so.modify_date
, sa.permission_set_desc AS [Access]
FROM sys.objects AS so
INNER JOIN sys.module_assembly_usages AS mau
ON so.object_id = mau.object_id
INNER JOIN sys.assemblies AS sa
ON mau.assembly_id = sa.assembly_id
WHERE so.type_desc = N'AGGREGATE_FUNCTION'
用户定义类型
- ››sql server自动生成批量执行SQL脚本的批处理
- ››sql server 2008亿万数据性能优化
- ››SQL Server 2008清空数据库日志方法
- ››sqlserver安装和简单的使用
- ››SQL Sever 2008 R2 数据库管理
- ››SQL SERVER无法安装成功,sqlstp.log文件提示[未发...
- ››Sql Server中通过父记录查找出所有关联的子记录
- ››SqlServer触发器、存储过程和函数
- ››SQL Server 中的事务(含义,属性,管理)
- ››Sqlite数据库插入和读取图片数据
- ››Sql server 2005拒绝了对对象 'xx表' (数...
- ››Sql server 2005拒绝了对对象 'xx表' (数...
赞助商链接