CREATE SCOPE Statements
- Operational Insights
- reference
This topic describes how you use the CREATE statement to create Operational Insights scopes.
For general CREATE statement syntax, see CREATE Statements.
Syntax
CreateScope EBNF
CreateScope ::= "CREATE" "ANALYTICS"? "SCOPE" DatabaseAndScopeName ("IF" "NOT" "EXISTS")?
Synonym for SCOPE: DATAVERSE
CreateScope Diagram
DatabaseAndScopeName Diagram
The DatabaseAndScopeName represents two identifiers separated by a dot character ., where the first identifier is the database name and the second identifier is the scope name.
If a single identifier is present, Operational Insights resolves it as a scope name and assumes that the database is Default.
For more information about how Operational Insights organizes entities into a database.scope.database_object hierarchy and resolves names, see Entities in Operational Insights Services.