Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.change_tracking_databases

  No additional text.


Syntax
CREATE VIEW sys.change_tracking_databases AS
	SELECT d.id AS database_id,
		p.change_tracking_auto_cleanup as is_auto_cleanup_on,
		p.change_tracking_retention_period_val as retention_period,
		p.change_tracking_retention_period_units as retention_period_units, -- 1 = Minutes, 2 = Hours, 3 = Days
		ctrpu.name as retention_period_units_desc
	FROM master.sys.sysdbreg d OUTER APPLY OpenRowset(TABLE DBPROP, d.id) p
	LEFT JOIN sys.syspalvalues ctrpu ON ctrpu.class = 'CTRP' AND ctrpu.value = p.change_tracking_retention_period_units
	WHERE d.id < 0x7fff
		AND has_access('DB', d.id) = 1
		AND p.change_tracking_enabled = 1

 
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