Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

CREATE VIEW sys.filegroups AS
	SELECT o.name AS name,
		o.id AS data_space_id,
		c.name AS type_desc,
		sysconv(bit, o.status & 0x1) AS is_default,
		g.guid AS filegroup_guid,
		r.indepid AS log_filegroup_id,
		sysconv(bit, o.status & 0x2) AS is_read_only
	FROM sys.sysclsobjs o
	LEFT JOIN sys.sysguidrefs g ON g.id = o.id AND g.class = 3 AND g.subid = 0 -- GRC_FGGUID
	LEFT JOIN sys.syssingleobjrefs r ON r.depid = o.id AND r.class = 58 AND r.depsubid = 0 -- SRC_FGPAIR
	LEFT JOIN sys.syspalnames c ON c.class = 'DSTY' AND c.value = o.type
	WHERE o.class = 31 AND o.type IN ('FD', 'FG', 'FL')

Last revision 2008RTM
See also

  sp_cdc_enable_table_internal (Procedure)
sp_check_removable (Procedure)
sp_helpfilegroup (Procedure)
sp_MSaddguidindex (Procedure)
sp_MShelpindex (Procedure)
sp_MSscriptdb_worker (Procedure)
sp_MStablekeys (Procedure)
sp_sysutility_ucp_calculate_dac_file_space_health (Procedure)
sp_sysutility_ucp_calculate_filegroups_with_policy_violations (Procedure)
sp_sysutility_ucp_calculate_health (Procedure)
sp_sysutility_ucp_calculate_mi_file_space_health (Procedure)
sp_sysutility_ucp_initialize_mdw (Procedure)
sp_sysutility_ucp_remove (Procedure)
sysfilegroups (View)
sysutility_ucp_filegroups (View)


  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