Show/Hide Toolbars

Reporting Services CMD

Command: CreateRes

 

Create a resource or upload resources from a folder or folder+subfolders

 

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

 

Deploy Resource

 

CreateRes   Folder [/F:Folder] [/O] [/H] [/D:Description] [/B:Folder]

CreateRes   [/?] displays help

 

 

Parameters

 

 

Folder                  Name of the folder to upload resources from on PC

[/F:Folder]              Location to deploy items on report server

                           Note: If /F  is not specified current folder is used

[/O]                      Overwrite resource if it exists

[/N:ResName]            Name of the resource. If not specified file name is used

[/H]                    Hide report

[/D:Description]        Description of report

[/B:Folder]            Backup original resource before uploading new report

[/BO:Folder]              Backup original resource and overwrite (if exists)

[/BD:Folder]            Backup original resource to Folder\Date. If resource exists the resource created is item_<num>.rdl

[/BF:Folder]            Creates folder structure and backup original resource. If resource exists the resource created is item_<num>.rdl

[/BFO:Folder]            Creates folder structure and backup original resource overwrite backup file

[/BFD:Folder]            Creates folder structure+DATE and backup original resource. If resource exists the resource created is item_<num>.rdl

[/BDF:Folder]            Creates folder DATE+structure and backup original resource. If resource exists the resource created is item_<num>.rdl

[/S]                      Recurse sub folders only valid with Folder not file

 

 

                     Note: The backup folder is created if it does not exist

 

Examples

 

 

Upload all resources from the folder c:\ssrsDeploy to the report server folder \ssrstst

 

 createRes /f:\ssrstest c:\ssrsDeploy

 

 

 

Note the above example will not overwrite existing items. Use /O for overwrite

Upload all items from the folder c:\ssrsDeploy to the report server folder \ssrstst

 

 createRes /f:\ssrstest c:\ssrsDeploy /o

 

 

 

 

Before overwriting you can backup existing items.

Upload all items from the folder c:\ssrsDeploy to the report server folder \ssrstst

backup existing items before overwriting on the report server use /b:<folder on PC>

 

Note if the backup item already exists it will not be overwritten but a new file created on the PC

eg sales.jpg file exists in the backup folder.

If this command is rerun there will be another file called sales-1.jpg.

Rerun again sales-2.jpg and so on

 

 createRes /f:\ssrstest c:\ssrsDeploy /o /b:c:\backup

 

 

 

If you want to overwrite the item and not create multiple backup copies

use the command /bo:  (backup overwrite) not /b:

 

 createRes /f:\ssrstest c:\ssrsDeploy /o /bo:c:\backup

 

 

 

If you want to upload all items in the folder and sub folders use /s

 

 createRes /f:\ssrstest c:\ssrsDeploy /s

 

 

 

Recommended option to deploy and backup existing items use /s and /bf:

 

 createRes /f:\ssrstest c:\ssrsDeploy /o /bf:c:\backup /s

 

 

 

 

Date time can also be added to the backup folder name

 

there are 2 options

 

1. foldername\<date>  (use /bfd = backup folder date)

 

         createRes /f:\ssrstest c:\ssrsDeploy /o /bfd:c:\backup /s

 

 

 

2. <date>\foldername  (use /bdf = backup date folder)

 

         createRes /f:\ssrstest c:\ssrsDeploy /o /bdf:c:\backup /s

 

 

 

 

Remarks

 

Changing to the root folder

 

descn

 

cd \

 

 

See Also

 

CreateAll                - Upload from disk one or more reports, models, data sources

CreateLinkRpt        - Create linked report

CreateModel        - Upload from disk one or more models

CreateDS                - Create data source

CreateRes                - Upload from disk one or more resources

CreateRpt                - Upload from disk one or more reports