Show/Hide Toolbars

Reporting Services CMD

Command: SetRptHistCnt

 

Set report history count or set to inherited

 

SSRS Version:

 

2000, 2005 (N), 2005 (I), 2008 (N), 2008 (I),2008r2(N), 2008r2(I), 2012(N), 2012(I), Azure

 

(N)=Native

(I)=Integrated

 

 

Syntax

 

SetRptHistCnt  Report|Folder [/S][/V:num][/I]

 

  [/S]       Sub folder.

  [/I]       Set number of snapshots for a report to inherit from system

  [/V:<num>] Set number of snapshots for a report

 

       Note:  /I and /V are mutually exclusive 

 

 

 

Parameters

 

  [/S]       Sub folder.

  [/I]       Set number of snapshots for a report to inherit from system

  [/V:<num>] Set number of snapshots for a report

 

       Note:  /I and /V are mutually exclusive 

 

Examples

 

reset the report history count for all reports in folder global sales

 

setRptHistCnt "\global sales" /i

 

 

Set the report history snapshot count  to 10 for all reports in folder global sales

 

setRptHistCnt "\global sales" /v:10

 

 

 

Set the report history snapshot count  to 10 for all reports in folder and sub folder global sales

 

setRptHistCnt "\global sales" /v:10 /s

 

 

Remarks

 

Enclose the folder/ report name in quote if it has a space.

 

See Also

 

 CreateReportHistSnapshot        - Create report history snapshot

 DelSnapshot                        - Delete report history snapshot

 GetRptHist                        - Get report history information

 GetRptHistCnt                        - Get report history count information

 HistDisable                        - Disable report history

 HistEnable                        - Enable report history

 HistStatus                        - Report history status

 SetRptHistCnt                        - Set report history count