DBCC dllname (FREE) (Transact-SQL)


THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

Unloads the specified extended stored procedure DLL from memory.

Topic link icon Transact-SQL Syntax Conventions

DBCC dllname ( FREE ) [ WITH NO_INFOMSGS ]  

Is the name of the DLL to release from memory.

Suppresses all informational messages.

When an extended stored procedure is executed, the DLL remains loaded by the instance of SQL Server until the server is shut down. This statement allows for a DLL to be unloaded from memory without shutting down SQL Server. To display the DLL files currently loaded by SQL Server, execute sp_helpextendedproc

When a valid DLL is specified, DBCC dllname (FREE) returns:

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

Requires membership in the sysadmin fixed server role or the db_owner fixed database role.

The following example assumes that xp_sample is implemented as Xp_sample.dll and has been executed. DBCC dllname (FREE) unloads the Xp_sample.dll file associated with the xp_sample extended procedure.

DBCC xp_sample (FREE);  

DBCC (Transact-SQL)
Execution Characteristics of Extended Stored Procedures
sp_addextendedproc (Transact-SQL)
sp_dropextendedproc (Transact-SQL)
sp_helpextendedproc (Transact-SQL)
Unloading an Extended Stored Procedure DLL

Community Additions