Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 1.98 KB

sp-external-policy-refresh-transact-sql.md

File metadata and controls

70 lines (49 loc) · 1.98 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_external_policy_refresh (Transact-SQL)
Reference documentation to explain sp_external_policy_refresh (Transact-SQL) system stored procedure.
srdan-bozovic-msft
srbozovi
randolphwest
08/23/2023
sql
system-objects
reference
sp_external_policy_refresh_TSQL
sp_external_policy_refresh
sp_external_policy_refresh system stored procedure
TSQL

sp_external_policy_refresh (Transact-SQL)

[!INCLUDE sqlserver2022]

Forces immediate download of latest published policies for the whole instance (for every database).

Note

If there are any ongoing pull requests by the background task or by another user, the request waits until the former task is finished and starts a new pull. – This ensures that the result of calling this proc explicitly always results in a refreshed cache.

Syntax

sp_external_policy_refresh [ @type = ] 'type'
[ ; ]

Arguments

[ @type = ] 'type'

Type can be reload (complete policy download) or update (incremental policy download). Default type is update.

Return code values

0 (success) or a nonzero number (failure).

Permissions

Requires ALTER SERVER STATE (covered by CONTROL SERVER) permission.

Examples

A. Complete policy refresh

The following example downloads complete set of policies.

EXEC sp_external_policy_refresh @type = 'reload'

B. Incremental policy refresh

The following example downloads policies incrementally by using the default type 'update'.

EXEC sp_external_policy_refresh;

Related content