sp_freedll

Description

Unloads a dynamic link library (DLL) that was previously loaded into XP Server memory to support the execution of an extended stored procedure (ESP).

Syntax

sp_freedll dll_name

Parameters

dll_name

is the file name of the DLL being unloaded from XP Server memory.

Examples

Example 1

Unloads the sqlsrvdll.dll DLL:

sp_freedll "sqlsrvdll.dll"

Usage

Permissions

The permission checks for sp_freedll differ based on your granular permissions settings.

Granular permissions enabled

With granular permissions enabled, you must be a user with manage any ESP privilege.

Granular permissions disabled

With granular permissions disabled, you must be a user with sa_role.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

Event

Audit option

Command or access audited

Information in extrainfo

38

exec_procedure

Execution of a procedure

  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect

See also

System procedures sp_addextendedproc, sp_dropextendedproc, sp_helpextendedproc