DacQueryScopes DacQueryScopes DacQueryScopes Enum


Defines the type of objects to query from the model.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum DacQueryScopes
type DacQueryScopes = 
Public Enum DacQueryScopes


All All All 15

All elements in the model, not including references to external elements in non-system databases.

BuiltIn BuiltIn BuiltIn 2

Query built in system objects

Default Default Default 3

Default query scope is to query both UserDefined and BuiltIn query scopes

None None None 0

Filter out all elements.

SameDatabase SameDatabase SameDatabase 4

Query user defined objects from referenced models where the referenced model is for the same database.

System System System 8

Query System objects that are not treated as built in. These are objects that appear when the master database is referenced

UserDefined UserDefined UserDefined 1

Query user defined objects.

Applies to