DATABASES
用户定义对象和系统对象的所有列的集合。
表1 DATABASES
列名称 | 类型 | 说明 |
---|---|---|
name | name | 数据库名称 |
database_id | int | 数据库 ID |
source_database_id | int | 返回NULL |
owner_sid | oid | 所有者ID |
create_date | timestamp | 返回NULL |
compatibility_level | tinyint | 返回NULL |
collation_name | name | 数据库的排序规则 |
user_access | tinyint | 返回0 |
user_access_desc | nvarchar(60) | 返回'MULTI_USER' |
is_read_only | bit | 返回0 |
is_auto_close_on | bit | 返回0 |
is_auto_shrink_on | bit | 返回0 |
state | tinyint | 返回0 |
state_desc | nvarchar(60) | 返回'ONLINE' |
is_in_standby | bit | 对于还原日志而言,数据库是只读的。 |
is_cleanly_shutdown | bit | 返回0 |
is_supplemental_logging_enabled | bit | 返回0 |
snapshot_isolation_state | tinyint | 允许快照隔离事务的状态,返回1 |
snapshot_isolation_state_desc | nvarchar(60) | 返回'ON' |
is_read_committed_snapshot_on | bit | read-committed 隔离级别,返回1 |
recovery_model | tinyint | 返回1 |
recovery_model_desc | nvarchar(60) | 返回'FULL' |
page_verify_option | tinyint | PAGE_VERIFY选项设置,返回0 |
page_verify_option_desc | nvarchar(60) | PAGE_VERIFY选项设置的说明,返回NULL |
is_auto_create_stats_on | bit | 返回1 |
is_auto_create_stats_incremental_on | bit | 返回0 |
is_auto_update_stats_on | bit | 返回0 |
is_auto_update_stats_async_on | bit | 返回0 |
is_ansi_null_default_on | bit | 返回1 |
is_ansi_nulls_on | bit | 返回1 |
is_ansi_padding_on | bit | 返回0 |
is_ansi_warnings_on | bit | 返回0 |
is_arithabort_on | bit | 返回1 |
is_concat_null_yields_null_on | bit | 返回1 |
is_numeric_roundabort_on | bit | 返回0 |
is_quoted_identifier_on | bit | 返回1 |
is_recursive_triggers_on | bit | 返回0 |
is_cursor_close_on_commit_on | bit | 返回0 |
is_local_cursor_default | bit | 返回0 |
is_fulltext_enabled | bit | 返回0 |
is_trustworthy_on | bit | 返回0 |
is_db_chaining_on | bit | 返回0 |
is_parameterization_forced | bit | 返回0 |
is_master_key_encrypted_by_server | bit | 返回0 |
is_query_store_on | bit | 返回0 |
is_published | bit | 返回0 |
is_subscribed | bit | 不使用此列。 无论数据库的订阅服务器状态如何,它都会始终返回 0。 |
is_merge_published | bit | 返回0 |
is_distributor | bit | 返回0 |
is_sync_with_backup | bit | 返回0 |
service_broker_guid | oid | 返回NULL |
is_broker_enabled | bit | 返回0 |
log_reuse_wait | tinyint | 返回0 |
log_reuse_wait_desc | nvarchar(60) | 返回'NOTHING' |
is_date_correlation_on | bit | 返回0 |
is_cdc_enabled | bit | 返回0 |
is_encrypted | bit | 返回0 |
nais_honor_broker_priority_onme | bit | 返回0 |
replica_id | oid | 返回NULL |
group_database_id | oid | 返回NULL |
resource_pool_id | int | 返回NULL |
default_language_lcid | smallint | 返回NULL |
default_language_name | nvarchar(128) | 返回NULL |
default_fulltext_language_lcid | int | 返回NULL |
default_fulltext_language_name | nvarchar(128) | 返回NULL |
is_nested_triggers_on | bit | 返回NULL |
is_transform_noise_words_on | bit | 返回NULL |
two_digit_year_cutoff | smallint | 返回NULL |
containment | tinyint | 返回0 |
containment_desc | nvarchar(60) | 返回'NONE' |
target_recovery_time_in_seconds | int | 返回0 |
delayed_durability | int | 返回0 |
delayed_durability_desc | nvarchar(60) | 返回NULL |
is_memory_optimized_elevate_to_snapshot_on | bit | 返回0 |
is_federation_member | bit | 返回0 |
is_remote_data_archive_enabled | bit | 返回0 |
is_mixed_page_allocation_on | bit | 返回0 |
is_temporal_history_retention_enabled | bit | 返回0 |
catalog_collation_type | int | 返回0 |
catalog_collation_type_desc | nvarchar(60) | 返回'Not Application' |
physical_database_name | nvarchar(128) | 返回NULL |
is_result_set_caching_on | bit | 返回0 |
is_accelerated_database_recovery_on | bit | 返回0 |
is_tempdb_spill_to_remote_store | bit | 返回0 |
is_stale_page_detection_on | bit | 返回0 |
is_memory_optimized_enabled | bit | 返回0 |
is_data_retention_on | bit | 返回0 |
is_ledger_on | bit | 返回0 |
is_change_feed_enabled | bit | 返回0 |
is_event_stream_enabled | bit | 返回0 |
is_vorder_enabled | bit | 返回0 |
is_optimized_locking_on | bit | 返回0 |
意见反馈