SQL Server 2012 System Views Map
SQL Server 2012 System Views Map
SQL Server 2012 System Views Map
sys.identity_columns object_id
object_id
using_xml_index_id
object_id
object_id object_id
sys.events object_id
sys.trigger_events object_id
Object Type
Dynamic Management View
primary sys.indexes.type_desc=XML AND sys.indexes.secondary_type is NULL secondary sys.xml_indexes.type_desc=XML AND sys.indexes.secondary_type is not NULL
object_id
sys.plan_guides scope_object_id
index_handle scope_object_id
sys.computed_columns
sys.columns.is_computed=1
sys.server_event_notifications sys.trace_categories sys.trace_columns sys.trace_event_bindings sys.trace_events sys.trace_subclass_values sys.traces Catalog View Dynamic Management Function ()
sys.dm_db_missing_index_group_stats group_handle
group_handle
referenced_object_id, key_index_id
referenced_object_id
object_id
object_id
sys.fn_trace_gettable()
sys.views
sys.synonyms
system_type_id, user_type_id
xml_collection_id
sys.objects.type=V sys.objects.type=D
sys.types sys.all_views
system_type_id
sys.extended_procedures
assembly_id
object_id
sys.check_constraints parent_column_id
parent_column_id sys.objects.type=C
sys.server_events
object_id
sys.server_triggers
sys.assembly_types assembly_id
sys.all_objects
column_id column_id object_id object_id sys.objects.type=R object_id rule_object_id object_id sys.objects.type=Dobject_id xml_collection_id object_id
object_id object_id parent_object_id object_id object_id schema_id object_id object_id object_id sys.objects.type in (C, D, F, PK, R, TR, UQ)
sys.server_trigger_events
Scope
Server scope objects have a shaded background column list
xml_collection_id
default_object_id
sys.default_constraints parent_column_id
system_type_id
user_type_id
object_id
ob
object_id
sys.all_columns sys.all_parameters sys.all_sql_modules sys.server_assembly_modules sys.server_sql_modules sys.system_columns sys.system_objects sys.system_parameters sys.system_sql_modules sys.system_views
sys.crypt_properties.class=1 s ys . obje c ts . type in ( U Q, P K ) AND sys.key_constraints.parent_object_id is not null
object_id
sys.xml_schema_collections
xml_collection_id schema_id
ct je _id
xml_collection_id
xml_collection_id schema_id
sys.key_constraints unique_index_id
unique_index_id sys.indexes.is_unique=1 index_id object_id index_id, object_id
referenced_minor_id, referenced_major_id
column_id
schema_id schema_id
schema_id
Relationship Type
Referential Integrity
0..many 0..1
sys.indexes.type=6
object_id, index_id
sys.foreign_key_columns
constraint_object_id, constraint_column_id referenced_object_id, referenced_column_id parent_object_id, parent_column_id
principal_id
Linked Servers
sys.linked_logins server_id
server_id server_id
sys.servers server_id
server_id
server_id
sys.remote_logins server__id
sys.objects.type=U
Dependency
appdomain_address appdomain_address
session_id
data_space_id
plan_handle
appdomain_address
object_id, index_id
assembly_id
assembly_id assembly_id assembly_id assembly_id referenced assembly
appdomain_address sos_task_address
sos_task_address
segment_id
object_id
referenced assembly
assembly_id
object_id, index_id
sys.assemblies
sys.dm_cir_tasks
partition_number
Column Store
data_space_id data_space_id
sys.dm_cir_appdomains appdomain_address
appdomain_address
Spatial
sys.spatial_reference_systems
sys.filegroups
data_space_id data_space_id
data_space_id
data_space_id
plan_handle @handle
sys.dm_exec_plan_attributes() @handle
@handle
plan_handle @handle
1..many
sys.dm_db_session_space_usage
plan_handle
sys.data_spaces data_space_id
session_id
sql_handle
plan_handle
Inheritance
Base Object
plan_handle
Derived Object
sys.column_store_dictionaries
segment_id
hobt_id segment_id
database_id
assembly_id
referenced_assembly_id, assembly_id
object_id
sys.dm_db_partition_stats sys.assembly_modules
assembly_id object_id
hobt_id
assembly_id object_id
sys.dm_exec_query_stats
object_id @handle @handle
sql_handle plan_handle
sql_handle object_id @handle plan_handle @handle
Function Call
Function
@handle
partition_id
data_space_id
assembly_id file_id
sys.partition_functions function_id
function_id function_id
data_space_id
Execution Environment
sys.dm_exec_query_memory_grants
AlwaysOn
listener_id
Partitioning
session_id
session_id
group_id
NOTE: NOT ALL OBJECTS OR POSSIBLE RELATIONSHIPS ARE SHOWN ON THIS POSTER.
family_guid
Availability Groups
sys.dm_hadr_availability_group_states sys.availability_groups sys.availability_groups_cluster group_id
group_id group_id
Availability Replicas
sys.dm_hadr_availability_replica_cluster_nodes sys.dm_hadr_availability_replica_cluster_states sys.dm_hadr_availability_replica_states sys.availability_replicas
group_id group_id
Endpoints
sys.endpoint_webmethods endpoint_id
endpoint_id endpoint_id endpoint_id sys.endpoints.type=1
endpoint_id
session_id
file_id database_id
session_id
sys.dm_io_cluster_shared_drives sys.dm_io_pending_io_requests
pool_id
sys.endpoints endpoint_id
endpoint_id object_id
sys.filetables object_id
sys.dm_filestream_non_transacted_handles database_id
source_database_id
replica_id group_id
sys.soap_endpoints
database_id
sys.change_tracking_tables object_id
sys.dm_exec_xml_handles()
group_id
sys.http_endpoints
group_id
database_id database_id
handle_id
sys.fulltext_index_fragments
connection_id session_id most_recent_sql_handle
resource_associated_entity_id
sys.tcp_endpoints
sys.dm_tran_locks.request_type in ( HOB T , P a ge , R ID, K ey) a nd sys.dm_tran_locks.database_id=db_id()
owner_sid
group_database_id
database_id
request_session_id
Availability Databases
sys.via_endpoints
endpoint_id connection_id
sys.fulltext_indexes data_space_id
object_id
object_id unique_index_id
unique_index_id data_space_id
session_id, request_id
Service Broker
sys.dm_broker_forwarded_messages conversation__id
conversation_id
grantee_principal_id, grantor_principal_id
resource_associated_entity_id
scheduler_id scheduler_id
sys.dm_os_schedulers scheduler_id
sys.sql_logins principal_id
memory_object_ address
connection_id
sys.dm_tran_transactions_snapshot transaction_sequence_num
transaction_sequence_num principal_id transaction_sequence_num principal_id principal_id
peer_certificate_id connection_id
task_address
principal_id principal_id
principal_id
conversation_id
page_allocator_address
member_principal_id sys.server_principals.type=R
Server-Wide Information
sys.dm_os_memory_cache_entries cache_address memory_object_address pool_id
pool_id memory_object_ address
Extended Events
sys.dm_xe_packages guid sys.dm_xe_session_targets event_session_address target_name target_package_guid
event_session_address name, package_guid target_name, target_package_guid name, package_guid guid
sys.dm_os_memory_pools memory_pool_address
memory_pool_address
credential_id
principal_id
sys.dm_os_waiting_tasks
resource_address
sys.master_key_passwords
service_id
grantee_principal_id
grantee_principal_id
memory_clerk_address
package_guid
service_id
sys.services
service_id
service_queue_id service_id
service_id service_id
sys.dm_tran_current_transaction transaction_sequence_num
cache_address
memory_clerk_address
service_queue_id object_id
thumbprint
thumbprint
sys.key_encryptions thumbprint
thumbprint thumbprint
key_guid
sys.dm_os_memory_cache_clock_hands cache_address
address
sys.service_queues object_id
object_id object_id
Security
thumbprint sys.crypt_properties.crypt_type=CPVO
sys.dm_tran_top_version_generators sys.dm_tran_version_store
transaction_id
transaction_id
sys.dm_os_memory_cache_counters cache_address
cache_address
cache_address
object_name, object_package_guid
symmetric_key_id
sys.dm_tran_database_transactions transaction_id
address sys.dm_xe_object_columns
address address
major_id
key_id cache_address
sys.service_contracts
service_contract_id
service_contract_id service_contract_id
sys.crypt_properties.class=5
sys.openkeys key_id
service_contract_id
service_contract_id
service_id
Transaction Information
member_principal_id role_principal_id sys.database_role_members=R
sys.dm_os_memory_cache_hash_tables cache_address
thumbprint
thumbprint
service_contract_id
service_id service_contract_id
service_id
sys.remote_service_bindings service_contract_id
Resource Governor
group_id group_id
group_id group_id
action_name, action_package_guid
queue_id
sys.user_token
pool_id
sys.dm_resource_governor_resource_pools_affinity
sys.dm_os_threads sys.dm_os_virtual_address_dump
pool_id pool_id
message_type_id service_contract_id
sys.database_audit_specifications_details
sys.message_type_xml_schema_collection_usages sys.routes
sys.dm_broker_queue_monitors queue_id
sys.service_queue_usages
event_name, event_package_guid