Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

CREATE VIEW sys.internal_tables AS
	SELECT o.name, o.id AS object_id, convert(int, null) AS principal_id, o.nsid AS schema_id, o.pid AS parent_object_id,
		o.type, n.name AS type_desc, o.created AS create_date, o.modified AS modify_date,
		convert(bit, 0) AS is_ms_shipped, convert(bit, 0) AS is_published, convert(bit, 0) AS is_schema_published,
		convert(tinyint, par.depsubid) AS internal_type,
		itt.name AS internal_type_desc,
		par.indepid AS parent_id,
		par.indepsubid AS parent_minor_id,
		lob.lobds AS lob_data_space_id,
		rfs.indepid AS filestream_data_space_id
	FROM sys.sysschobjs o
	LEFT JOIN sys.syspalnames n ON n.class = 'OBTY' AND n.value = o.type
	LEFT JOIN sys.syssingleobjrefs par ON par.depid = o.id AND par.class = 40	 -- SRC_INTLTAB_PARENT
	LEFT JOIN sys.syspalvalues itt ON itt.class = 'ITTY' AND itt.value = par.depsubid
	LEFT JOIN sys.sysidxstats lob ON lob.id = o.id AND lob.indid <= 1
	LEFT JOIN sys.syssingleobjrefs rfs ON rfs.depid = o.id AND rfs.class = 42 AND rfs.depsubid = 0	-- SRC_OBJTOFSDS
	WHERE o.nsclass = 0 AND o.nsid = 4 AND o.pclass = 1 AND o.type = 'IT'
		AND has_access('IT', par.indepid, par.depsubid) = 1

Last revision 2008RTM
See also

  sp_help_spatial_geography_index_helper (Procedure)
sp_help_spatial_geometry_index_helper (Procedure)
sp_SetInternalTableAccess (Procedure)
sp_spaceused (Procedure)


  Query a named instance
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
Zoekmachine optimalisatie
SQL Servers hidden objects
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
sIFR; de combinatie tussen HTML en Flash