ALTER SQL_FEDERATION RULE

Description

The ALTER SQL_FEDERATION RULE syntax is used to modify the federated query configuration.

Syntax

Grammar Railroad diagram

  1. AlterSQLFederationRule ::=
  2. 'ALTER' 'SQL_FEDERATION' 'RULE' sqlFederationRuleDefinition
  3. sqlFederationRuleDefinition ::=
  4. '(' sqlFederationEnabled? allQueryUseSQLFederation? (','? executionPlanCache)? ')'
  5. sqlFederationEnabled ::=
  6. 'SQL_FEDERATION_ENABLED' '=' boolean_
  7. allQueryUseSQLFederation ::=
  8. 'ALL_QUERY_USE_SQL_FEDERATION' '=' boolean_
  9. executionPlanCache ::=
  10. 'EXECUTION_PLAN_CACHE' '(' cacheOption ')'
  11. cacheOption ::=
  12. ('INITIAL_CAPACITY' '=' initialCapacity)? (',' 'MAXIMUM_SIZE' '=' maximumSize)?
  13. initialCapacity ::=
  14. int
  15. maximumSize ::=
  16. int
  17. boolean_ ::=
  18. TRUE | FALSE

Example

  • Alter SQL Federation rule
  1. ALTER SQL_FEDERATION RULE (SQL_FEDERATION_ENABLED=TRUE ALL_QUERY_USE_SQL_FEDERATION=TRUE EXECUTION_PLAN_CACHE(INITIAL_CAPACITY=1024 MAXIMUM_SIZE=65535));

Reserved word

ALTERSQL_FEDERATIONRULESQL_FEDERATION_ENABLEDALL_QUERY_USE_SQL_FEDERATIONEXECUTION_PLAN_CACHEINITIAL_CAPACITYMAXIMUM_SIZE