Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_indexcolumns_managed

  No additional text.


Syntax

create procedure sys.sp_indexcolumns_managed
(
	@Catalog			sysname = NULL,
	@Owner			sysname = NULL,
	@Table 			sysname = NULL,
	@ConstraintName	sysname = NULL,
	@Column			sysname = NULL
)
as
	select
		constraint_catalog		= s_icv.constraint_catalog,
		constraint_schema		= s_icv.constraint_schema,
		constraint_name		= s_icv.constraint_name,
		table_catalog			= s_icv.table_catalog,
		table_schema			= s_icv.table_schema,
		table_name			= s_icv.table_name,
		column_name			= s_icv.column_name,
		ordinal_position		= convert(int, s_icv.ordinal_position),
		KeyType				= s_icv.KeyType,
		index_name 			= s_icv.index_name
from
	sys.spt_indexcolumns_view_managed s_icv
where
	(s_icv.table_catalog = @Catalog or (@Catalog is null)) and
	(s_icv.table_schema = @Owner or (@Owner is null)) and
	(s_icv.table_name = @Table or (@Table is null)) and
	(s_icv.index_name = @ConstraintName or (@ConstraintName is null)) and
	(s_icv.column_name = @Column or (@Column is null))
order by table_name, index_name

 
Last revision 2008RTM
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