FCS: Check/Modify Your Current Retention Times for SCDW Database

FCS: Check/Modify Your Current Retention Times for SCDW Database

Paste the following code into a new SQL Query window on the server that hosts your SystemCenterReporting Database:


use SystemCenterReporting

 

select cs.cs_tablename 'Table Name', wcs.wcs_groomdays 'Groom Days' from warehouseclassschema wcs

join classschemas cs

on cs.cs_classID = wcs.wcs_classID

where cs.cs_tablename = 'SC_AlertFact_Table'

and wcs.wcs_mustbegroomed = 1

 

select cs.cs_tablename 'Table Name', wcs.wcs_groomdays 'Groom Days' from warehouseclassschema wcs

join classschemas cs

on cs.cs_classID = wcs.wcs_classID

where cs.cs_tablename = 'SC_SampledNumericDataFact_Table'

and wcs.wcs_mustbegroomed = 1

 

select cs.cs_tablename 'Table Name', wcs.wcs_groomdays 'Groom Days' from warehouseclassschema wcs

join classschemas cs

on cs.cs_classID = wcs.wcs_classID

where cs.cs_tablename = 'SC_EventParameterFact_Table'

and wcs.wcs_mustbegroomed = 1

 

select cs.cs_tablename 'Table Name', wcs.wcs_groomdays 'Groom Days' from warehouseclassschema wcs

join classschemas cs

on cs.cs_classID = wcs.wcs_classID

where cs.cs_tablename = 'SC_AlertToEventFact_Table'

and wcs.wcs_mustbegroomed = 1

 

select cs.cs_tablename 'Table Name', wcs.wcs_groomdays 'Groom Days' from warehouseclassschema wcs

join classschemas cs

on cs.cs_classID = wcs.wcs_classID

where cs.cs_tablename = 'SC_EventFact_Table'

and wcs.wcs_mustbegroomed = 1

 

select cs.cs_tablename 'Table Name', wcs.wcs_groomdays 'Groom Days' from warehouseclassschema wcs

join classschemas cs

on cs.cs_classID = wcs.wcs_classID

where cs.cs_tablename = 'SC_AlertHistoryFact_Table'

and wcs.wcs_mustbegroomed = 1

To change the retention times put the following into a new query window and run it

To change to 180 days (in this example):use SystemCenterReportingexec p_updategroomdays 'SC_AlertFact_Table', 180exec p_updategroomdays 'SC_SampledNumericDataFact_Table', 180exec p_updategroomdays 'SC_EventParameterFact_Table', 180exec p_updategroomdays 'SC_AlertToEventFact_Table', 180exec p_updategroomdays 'SC_EventFact_Table', 180exec p_updategroomdays 'SC_AlertHistoryFact_Table', 180

 

 

Leave a Comment
  • Please add 1 and 7 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Ed Price MSFT edited Revision 1. Comment: Updated title and added tags.

Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Ed Price MSFT edited Revision 1. Comment: Updated title and added tags.

Page 1 of 1 (1 items)