Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

CREATE VIEW sys.index_columns AS
	SELECT idmajor AS object_id,
		idminor AS index_id,
		subid AS index_column_id,
		intprop AS column_id,
	  	tinyprop1 AS key_ordinal,
	  	tinyprop2 AS partition_ordinal,
	  	convert (bit, status & 0x4) AS is_descending_key,	-- ISC_IC_DESC_KEY
		convert (bit, status & 0x10) AS is_included_column	-- ISC_IC_INCLUDED
	FROM sys.sysiscols
	WHERE (status & 2) <> 0
		AND has_access('CO', idmajor) = 1	-- ISC_IND_COL

Last revision 2008RTM
See also

  fulltext_index_columns (View)
spt_indexcolumns_view_managed (View)
spt_indexes_view (View)
spt_indexes_view_100 (View)
spt_indexes_view_managed (View)
spt_table_type_primary_keys_view (View)
sp_cdc_change_data_capture (Procedure)
sp_cdc_create_change_enumeration_functions (Procedure)
sp_cdc_create_change_table_index (Procedure)
sp_cdc_create_objects (Procedure)
sp_cdc_disable_table_instance (Procedure)
sp_cdc_enable_table_internal (Procedure)
sp_cdc_logddl_internal (Procedure)
sp_cdc_verify_index_name (Procedure)
sp_cdc_vupgrade (Procedure)
sp_estimate_data_compression_savings (Procedure)
sp_fulltext_column (Procedure)
sp_help_fulltext_columns (Procedure)
sp_help_fulltext_columns_cursor (Procedure)
sp_help_fulltext_tables (Procedure)
sp_help_fulltext_tables_cursor (Procedure)
sp_help_spatial_geography_index_helper (Procedure)
sp_help_spatial_geometry_index_helper (Procedure)
sp_MSAdjustConflictTable (Procedure)
sp_MScreate_sub_tables_internal (Procedure)
sp_MSdropguidcolumn (Procedure)
sp_MSget_load_hint (Procedure)
sp_MSiscolpk (Procedure)
sp_MSmakeupdateproc (Procedure)
sp_MSmerge_dropindex (Procedure)
sp_MSmerge_upgrade_from_90rtm (Procedure)
sp_MSNonSQLDDL (Procedure)
sp_MSrepl_addarticle (Procedure)
sp_MSrepl_changearticle (Procedure)
sp_MSrepl_changepublication (Procedure)
sp_MSrestoresavedforeignkeys (Procedure)
sp_MSscript_article_view (Procedure)
sp_ORAvalidatecache (Procedure)
sp_replscriptuniquekeywhereclause (Procedure)
sp_special_columns (Procedure)
sp_special_columns_100 (Procedure)
sp_special_columns_90 (Procedure)
sp_statistics (Procedure)
sp_statistics_100 (Procedure)
sysdepends (View)
sysindexkeys (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