sp_unbindcache_all

Description

Unbinds all objects that are bound to a cache.

Syntax

sp_unbindcache_all cache_name

Parameters

cache_name

is the name of the data cache from which objects are to be unbound.

Examples

Example 1

Unbinds all databases, tables, indexes, text objects and image objects that are bound to pub_cache:

sp_unbindcache_all pub_cache

Usage

Permissions

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

Granular permissions enabled

With granular permissions enabled, you must be a user with manage data cache 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_bindcache, sp_helpcache, sp_unbindcache