Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.tables

  No additional text.


Syntax
CREATE VIEW sys.tables AS
	SELECT o.name, o.object_id, o.principal_id, o.schema_id, o.parent_object_id,
		o.type, o.type_desc, o.create_date, o.modify_date,
		o.is_ms_shipped, o.is_published, o.is_schema_published,
		lob.lobds AS lob_data_space_id,
		rfs.indepid AS filestream_data_space_id,
		o.property AS max_column_id_used,
		o.lock_on_bulk_load, o.uses_ansi_nulls, o.is_replicated, o.has_replication_filter,
		o.is_merge_published, o.is_sync_tran_subscribed, o.has_unchecked_assembly_data,
		lob.intprop AS text_in_row_limit,
		o.large_value_types_out_of_row,
		o.is_tracked_by_cdc,
		o.lock_escalation_option AS lock_escalation,
		ts.name AS lock_escalation_desc
	FROM sys.objects$ o
	LEFT JOIN sys.sysidxstats lob ON lob.id = o.object_id AND lob.indid <= 1
	LEFT JOIN sys.syssingleobjrefs rfs ON rfs.depid = o.object_id AND rfs.class = 42 AND rfs.depsubid = 0	-- SRC_OBJTOFSDS
	LEFT JOIN sys.syspalvalues ts ON ts.class = 'LEOP' AND ts.value = o.lock_escalation_option
	WHERE o.type = 'U'

 
Last revision 2008RTM
See also

  change_tracking_tables (View)
CONSTRAINT_COLUMN_USAGE (View)
CONSTRAINT_TABLE_USAGE (View)
dm_os_memory_cache_hash_tables (View)
internal_tables (View)
KEY_COLUMN_USAGE (View)
REFERENTIAL_CONSTRAINTS (View)
spt_columns_odbc_view (View)
spt_columns_view (View)
spt_columns_view_managed (View)
spt_column_privileges_owner_view (View)
spt_primary_keys_view (View)
spt_sparse_columns_view (View)
spt_tables_info_view (View)
spt_tables_view (View)
sp_adddistributiondb (Procedure)
sp_adddistributor (Procedure)
sp_addmergearticle (Procedure)
sp_addmergepullsubscription (Procedure)
sp_addmergesubscription (Procedure)
sp_addpullsubscription (Procedure)
sp_addpullsubscription_agent (Procedure)
sp_addqueued_artinfo (Procedure)
sp_addsynctriggers (Procedure)
sp_bindefault (Procedure)
sp_bindrule (Procedure)
sp_cdc_captured_columns (Procedure)
sp_cdc_change_data_capture (Procedure)
sp_cdc_cleanup_change_tables (Procedure)
sp_cdc_cleanup_change_table_internal (Procedure)
sp_cdc_cleanup_job_internal (Procedure)
sp_cdc_create_objects (Procedure)
sp_cdc_ddl_event_internal (Procedure)
sp_cdc_ddl_history (Procedure)
sp_cdc_disable_db_internal (Procedure)
sp_cdc_disable_table_instance (Procedure)
sp_cdc_disable_table_internal (Procedure)
sp_cdc_enable_table_internal (Procedure)
sp_cdc_generate_wrapper_function_internal (Procedure)
sp_cdc_get_capture_instances (Procedure)
sp_cdc_logddl_internal (Procedure)
sp_cdc_lsn_time_mapping_procs (Procedure)
sp_cdc_verify_capture_instance (Procedure)
sp_cdc_vupgrade (Procedure)
sp_CheckOracleAdminPrivileges (Procedure)
sp_check_removable (Procedure)
sp_cleanupdbreplication (Procedure)
sp_createstats (Procedure)
sp_ddopen (Procedure)
sp_decimal_estimate_savings_for_table (Procedure)
sp_deletepeerrequesthistory (Procedure)
sp_describe_cursor_tables (Procedure)
sp_detach_db (Procedure)
sp_dropdistributiondb (Procedure)
sp_dropdistributor (Procedure)
sp_dropmergepullsubscription (Procedure)
sp_dropmergesubscription (Procedure)
sp_estimated_rowsize_reduction_for_vardecimal (Procedure)
sp_fulltext_catalog (Procedure)
sp_generatefilters (Procedure)
sp_get_composite_job_info (Procedure)
sp_helpdevice (Procedure)
sp_helplogins (Procedure)
sp_help_fulltext_catalogs (Procedure)
sp_help_fulltext_catalogs_cursor (Procedure)
sp_help_fulltext_tables (Procedure)
sp_help_fulltext_tables_cursor (Procedure)
sp_help_log_shipping_monitor (Procedure)
sp_help_spatial_geography_index_helper (Procedure)
sp_help_spatial_geometry_index_helper (Procedure)
sp_IHarticleview (Procedure)
sp_IHdroparticle (Procedure)
sp_IHdroppublisher (Procedure)
sp_IHflushmetadata (Procedure)
sp_IHhelparticle (Procedure)
sp_IHpublication_validation (Procedure)
sp_IHscriptindexes (Procedure)
sp_IHscriptprimarykey (Procedure)
sp_IHsyncmetadata (Procedure)
sp_IH_LR_GetCacheData (Procedure)
sp_instdist (Procedure)
sp_link_publication (Procedure)
sp_logshippinginstallmetadata (Procedure)
sp_mergesubscription_cleanup (Procedure)
sp_MSactivatelogbasedarticleobject (Procedure)
sp_MSaddguidindex (Procedure)
sp_MSaddinitialsubscription (Procedure)
sp_MSaddsubscriptionarticles (Procedure)
sp_MSadd_mergereplcommand (Procedure)
sp_MSadjustgenerations (Procedure)
sp_MSarticlecleanup (Procedure)
sp_MSarticlecol (Procedure)
sp_MSarticlecolstatus (Procedure)
sp_MSarticle_validation (Procedure)
sp_MScdc_cleanup_job (Procedure)
sp_MScdc_db_ddl_event (Procedure)
sp_MSchangerepltablepasswords (Procedure)
sp_MScheckvalidsystables (Procedure)
sp_MScheck_join_filters (Procedure)
sp_MScleandbobjectsforreplication (Procedure)
sp_MScleanup_conflict_table (Procedure)
sp_MScleanup_zeroartnick_genhistory (Procedure)
sp_MScreatelightweightmetatables (Procedure)
sp_MScreate_common_dist_tables (Procedure)
sp_MScreate_distributor_tables (Procedure)
sp_MScreate_dist_tables (Procedure)
sp_MScreate_mergesystables (Procedure)
sp_MScreate_peer_tables (Procedure)
sp_MScreate_pub_tables (Procedure)
sp_MScreate_sub_tables (Procedure)
sp_MScreate_sub_tables_internal (Procedure)
sp_MSdependencies (Procedure)
sp_MSdisableautonosync (Procedure)
sp_MSdistpublisher_cleanup (Procedure)
sp_MSdroparticleconstraints (Procedure)
sp_MSdrop_cdc (Procedure)
sp_MSdrop_mergesystables (Procedure)
sp_MSdrop_peertopeer_tables (Procedure)
sp_MSdrop_pub_tables (Procedure)
sp_MSdrop_replcom (Procedure)
sp_MSdrop_repltran (Procedure)
sp_MSdrop_rlrecon (Procedure)
sp_MSenumschemachange_100 (Procedure)
sp_MSenumschemachange_80sp3 (Procedure)
sp_MSenumschemachange_90 (Procedure)
sp_MSenum_replication_agents (Procedure)
sp_MSestimatemergesnapshotworkload (Procedure)
sp_MSexpandsubsnb (Procedure)
sp_MSfixupbeforeimagetables (Procedure)
sp_MSgeneratenosyncsubscriptionsetupscript (Procedure)
sp_MSgettablecontents (Procedure)
sp_MSgettrancftsrcrow (Procedure)
sp_MSget_identity_range_info (Procedure)
sp_MShelpmergeconflictcounts (Procedure)
sp_MShelpmergeconflictpublications (Procedure)
sp_MShelptype (Procedure)
sp_MShelp_replication_table (Procedure)
sp_MShelp_subscriberside_history (Procedure)
sp_MSmakebatchinsertproc (Procedure)
sp_MSmakeconflictinsertproc (Procedure)
sp_MSmakegeneration (Procedure)
sp_MSmaketrancftproc (Procedure)
sp_MSmergepublishdb (Procedure)
sp_MSmergesubscribedb (Procedure)
sp_MSmerge_create_sub_table (Procedure)
sp_MSmerge_ddldispatcher (Procedure)
sp_MSmerge_is_snapshot_required (Procedure)
sp_MSmerge_upgrade_from_90rtm (Procedure)
sp_MSmerge_upgrade_subscriber (Procedure)
sp_MSmovegenzerochanges (Procedure)
sp_MSpost_auto_proc (Procedure)
sp_MSprocesspublisherlink (Procedure)
sp_MSpublicationcleanup (Procedure)
sp_MSpublicationview (Procedure)
sp_MSpublication_validation (Procedure)
sp_MSpublishdb (Procedure)
sp_MSregistermergesnappubid (Procedure)
sp_MSremovedbreplication (Procedure)
sp_MSremovedb_merge_replication_brute_force (Procedure)
sp_MSrepl_addarticle (Procedure)
sp_MSrepl_articlefilter (Procedure)
sp_MSrepl_changearticle (Procedure)
sp_MSrepl_changepublication (Procedure)
sp_MSrepl_changesubstatus (Procedure)
sp_MSrepl_checkOraclepackageversion (Procedure)
sp_MSrepl_createdatatypemappings (Procedure)
sp_MSrepl_droparticle (Procedure)
sp_MSrepl_dropdatatypemappings (Procedure)
sp_MSrepl_droppublication (Procedure)
sp_MSrepl_enumpublishertables (Procedure)
sp_MSrepl_FixPALRole (Procedure)
sp_MSrepl_get_Oracle_publisher_metadata (Procedure)
sp_MSrepl_GrantSelectOnMergeSystemTables (Procedure)
sp_MSrepl_helparticle (Procedure)
sp_MSrepl_refresh_heterogeneous_publisher (Procedure)
sp_MSrepl_reinitsubscription (Procedure)
sp_MSreset_queue (Procedure)
sp_MSrestoredbreplication (Procedure)
sp_MSrestoresavedforeignkeys (Procedure)
sp_MSrestore_sub_merge (Procedure)
sp_MSscriptpublicationconflicttables (Procedure)
sp_MSsetfilteredstatus (Procedure)
sp_MSsetupbelongs (Procedure)
sp_MSsetupnotbelongs (Procedure)
sp_MSsetupworktables (Procedure)
sp_MStablerefs (Procedure)
sp_MStablespace (Procedure)
sp_MStable_validation (Procedure)
sp_MStran_altertable (Procedure)
sp_MStran_is_snapshot_required (Procedure)
sp_MStrypurgingoldsnapshotdeliveryprogress (Procedure)
sp_MSupgrade_merge_history90 (Procedure)
sp_MSvalidatearticle (Procedure)
sp_MSvalidatepeertopeerarticles (Procedure)
sp_ORAaddpublisher (Procedure)
sp_ORAChangeTableSpace (Procedure)
sp_ORACheckAdminPrivileges (Procedure)
sp_ORACheckSourceTable (Procedure)
sp_ORAenumpublishertables (Procedure)
sp_ORAgetcolumndata (Procedure)
sp_ORAGetTablespaceInfo (Procedure)
sp_ORAhelparticle (Procedure)
sp_ORASchemaFilter (Procedure)
sp_ORAvalidatecache (Procedure)
sp_ORAverifypublisher (Procedure)
sp_refreshreplsysservers (Procedure)
sp_removesrvreplication (Procedure)
sp_rename (Procedure)
sp_repladdcolumn (Procedure)
sp_replicationdboption (Procedure)
sp_replmonitorhelpmergesession (Procedure)
sp_replsqlqgetrows (Procedure)
sp_resetsnapshotdeliveryprogress (Procedure)
sp_resolve_logins (Procedure)
sp_restoredbreplication (Procedure)
sp_schemafilter (Procedure)
sp_scriptupdproccore (Procedure)
sp_send_dbmail (Procedure)
sp_SetInternalTableAccess (Procedure)
sp_setreplfailovermode (Procedure)
sp_spaceused (Procedure)
sp_subscription_cleanup (Procedure)
sp_sysutility_mi_configure_proxy_account (Procedure)
sp_sysutility_mi_get_dac_execution_statistics_internal (Procedure)
sp_sysutility_ucp_calculate_health (Procedure)
sp_sysutility_ucp_provision_utility_object_internal (Procedure)
sp_sysutility_ucp_remove (Procedure)
sp_tableoption (Procedure)
sp_tables (Procedure)
sp_tableswc (Procedure)
sp_tables_ex (Procedure)
sp_tables_info_90_rowset (Procedure)
sp_tables_info_90_rowset2 (Procedure)
sp_tables_info_90_rowset2_64 (Procedure)
sp_tables_info_90_rowset_64 (Procedure)
sp_tables_info_rowset (Procedure)
sp_tables_info_rowset2 (Procedure)
sp_tables_info_rowset2_64 (Procedure)
sp_tables_info_rowset_64 (Procedure)
sp_tables_rowset (Procedure)
sp_tables_rowset2 (Procedure)
sp_tables_rowset_rmt (Procedure)
sp_table_types (Procedure)
sp_table_validation (Procedure)
sp_unbindefault (Procedure)
sp_unbindrule (Procedure)
sp_updatestats (Procedure)
sp_validatecache (Procedure)
sp_vupgrade_distdb (Procedure)
sp_vupgrade_heterogeneous_publishers (Procedure)
sp_vupgrade_mergetables (Procedure)
sp_vupgrade_publisher (Procedure)
sp_vupgrade_publisherdb (Procedure)
sp_vupgrade_replmsdb (Procedure)
sp_vupgrade_subscription_databases (Procedure)
sp_vupgrade_subscription_tables (Procedure)
sp_vupgrade_updatingpublicationarticle (Procedure)
sql_expression_dependencies$ (View)
syscursortables (View)
TABLE_CONSTRAINTS (View)
VIEW_TABLE_USAGE (View)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash