Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

CREATE VIEW sys.system_columns AS
	SELECT id AS object_id,
		name collate database_default AS name,
		colid AS column_id,
		xtype AS system_type_id,
		utype AS user_type_id,
		length AS max_length,
		prec AS precision, scale,
		convert(sysname, case cid
			when -2 then ServerProperty('Collation')
			else CollationPropertyFromId(cid, 'name') end) AS collation_name,
		sysconv(bit, 1 - (status & 1)) AS is_nullable,
		sysconv(bit, status & 2) AS is_ansi_padded,
		sysconv(bit, 0) AS is_rowguidcol,
		sysconv(bit, 0) AS is_identity,
		sysconv(bit, 0) AS is_computed,
		sysconv(bit, 0) AS is_filestream,
		sysconv(bit, 0) AS is_replicated,
		sysconv(bit, 0) AS is_non_sql_subscribed,
		sysconv(bit, 0) AS is_merge_published,
		sysconv(bit, 0) AS is_dts_replicated,
		sysconv(bit, 0) AS is_xml_document,
		sysconv(int, 0) AS xml_collection_id,
		sysconv(int, 0) AS default_object_id,
		sysconv(int, 0) AS rule_object_id,
		sysconv(bit, 0) AS is_sparse,
		sysconv(bit, 0) AS is_column_set
	FROM sys.syscolrdb
	WHERE number = 0

Last revision 2008RTM
See also

  all_columns (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