Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.objects$

  No additional text.


Syntax
CREATE VIEW sys.objects$ AS
	SELECT
		o.name,
		o.id AS object_id,
		r.indepid AS principal_id,
		o.nsid AS schema_id,
		o.pid AS parent_object_id,
		o.type AS type,
		n.name AS type_desc,
		o.intprop AS property,
		o.created AS create_date,
		o.modified AS modify_date,
		sysconv(bit, o.status & 1) AS is_ms_shipped,				-- OBJALL_MSSHIPPED
		sysconv(bit, o.status & 2) AS is_auto_dropped,				-- OBJALL_AUTODROP
		sysconv(bit, o.status & 4) AS is_system_named,			-- OBJALL_SYSNAMED
		sysconv(bit, o.status & 16) AS is_published,				-- OBJALL_RPL_PUBLISHED
		sysconv(bit, o.status & 64) AS is_schema_published,			-- OBJALL_RPL_PUB_SCHONLY
		sysconv(bit, o.status & 256) AS lock_on_bulk_load,			-- OBJTAB_BCPTABLOCK
		sysconv(bit, o.status & 256) AS is_disabled,				-- OBJCST_DISABLED
		sysconv(bit, o.status & 256) AS is_auto_executed,			-- OBJPRC_STARTUP
		sysconv(bit, o.status & 256) AS is_activation_enabled,		-- OBJSQ_ACTIVATIONON
		sysconv(bit, o.status & 512) AS has_opaque_metadata,		-- OBJVW_OPAQUEBMM
		sysconv(bit, o.status & 512) AS is_not_for_replication,		-- OBJCST_NOTFORREPL
		sysconv(bit, o.status & 512) AS is_receive_enabled,			-- OBJSQ_RECEIVEON
		sysconv(bit, o.status & 1024) AS is_not_trusted,			-- OBJCST_NOTRUST
		sysconv(bit, o.status & 1024) AS is_enqueue_enabled,		-- OBJSQ_ENQUEUEON
		sysconv(bit, o.status & 1024) AS with_check_option,		-- OBJVW_WITHCHECK
		sysconv(bit, o.status & 2048) AS is_retention_enabled,		-- OBJSQ_RETENTIONON
		sysconv(bit, o.status & 2048) AS has_unchecked_assembly_data,	-- OBJTAB_HAS_UNCHKED_ASM_DATA
		convert(tinyint, (o.status/4096) & 3) AS update_referential_action,		-- ERefAct/OBJREF_UPDACTMASK
		convert(tinyint, (o.status/16384) & 3) AS delete_referential_action,	-- ERefAct/OBJREF_DELACTMASK
		sysconv(bit, o.status & 0x1000) AS is_replicated,			-- OBJTAB_REPLICATE
		sysconv(bit, o.status & 0x1000) AS is_execution_replicated,	-- OBJPRC_PROC_EXEC
		sysconv(bit, o.status & 0x2000) AS has_replication_filter,		-- OBJTAB_HAS_FILT_PROC
		sysconv(bit, o.status & 0x2000) AS is_repl_serializable_only,	-- OBJPRC_PROC_SER_ONLY
		sysconv(bit, o.status & 0x4000) AS is_merge_published,			-- OBJTAB_MERGE_PUBL
		sysconv(bit, o.status & 0x4000) AS skips_repl_constraints,		-- OBJPRC_NO_REPL_CNST
		sysconv(bit, o.status & 0x8000) AS is_sync_tran_subscribed,		-- OBJTAB_SYNCTRAN_SUB
		sysconv(bit, o.status & 0x40000) AS uses_ansi_nulls,			-- OBJMOD_ANSINULLS
		sysconv(bit, o.status & 0x200000) AS null_on_null_input, 		-- OBJMOD_NULLONNULL
		sysconv(bit, o.status & 0x100000) AS uses_database_collation,	-- OBJMOD_ANSINULLS
		sysconv(bit, o.status & 0x01000000) AS is_tracked_by_cdc,			-- OBJTAB_CDC_TRACKED
		sysconv(bit, o.status & 0x02000000) AS large_value_types_out_of_row,	-- OBJTAB_LARGETYPE_OUTOFROW
		sysconv(tinyint, (o.status & 0x30000000)/0x10000000) AS lock_escalation_option
	FROM sys.sysschobjs o
	LEFT JOIN sys.syssingleobjrefs r ON r.depid = o.id AND r.class = 97 AND r.depsubid = 0	-- SRC_OBJOWNER
	LEFT JOIN sys.syspalnames n ON n.class = 'OBTY' AND n.value = o.type
	WHERE o.nsclass = 0 AND o.pclass = 1
		AND has_access('CO', o.id) = 1

 
Last revision 2008RTM
See also

  check_constraints (View)
default_constraints (View)
extended_procedures (View)
foreign_keys (View)
key_constraints (View)
objects (View)
procedures (View)
ROUTINES (View)
service_queues (View)
synonyms (View)
sysconstraints (View)
sysobjects (View)
system_objects (View)
system_objects$ (View)
system_sql_modules (View)
tables (View)
views (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