DBCC dllname (FREE) (Transact-SQL)

从内存中上载指定的扩展存储过程 DLL。

主题链接图标Transact-SQL 语法约定

语法

DBCC dllname ( FREE ) [ WITH NO_INFOMSGS ]

参数

  • dllname
    要从内存中释放的 DLL 名称。
  • WITH NO_INFOMSGS
    取消所有信息性消息。

结果集

指定了有效的 DLL 之后,DBCC dllname (FREE) 将返回:

DBCC execution completed. If DBCC printed error messages, contact your system administrator.

备注

当执行扩展存储过程时,DLL 仍保持由 Microsoft SQL Server 2005 的实例加载,直到关闭服务器为止。此语句允许从内存中卸载 DLL,而不用关闭 SQL Server。若要显示目前由 SQL Server 加载的 DLL 文件,请执行 sp_helpextendedproc

权限

要求具有 sysadmin 固定服务器角色或 db_owner 固定数据库角色的成员身份。

示例

以下示例假设以 Xp_sample.dll 实现 xp_sample 且已执行完毕。DBCC dllname (FREE) 会卸载与 xp_sample 扩展过程相关联的 Xp_sample.dll 文件。

DBCC xp_sample (FREE);

请参阅

参考

DBCC (Transact-SQL)
sp_addextendedproc (Transact-SQL)
sp_dropextendedproc (Transact-SQL)
sp_helpextendedproc (Transact-SQL)

其他资源

Execution Characteristics of Extended Stored Procedures
Unloading an Extended Stored Procedure DLL

帮助和信息

获取 SQL Server 2005 帮助