18
SSRS and PowerShell Presentation for VictoriaPASS Donabel Santos @sqlbelle read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 1

SSRS and PowerShell · SSRS and PowerShell ... Donabel Santos @sqlbelle read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 1

  • Upload
    dangnhi

  • View
    232

  • Download
    3

Embed Size (px)

Citation preview

SSRS and PowerShell Presentation for VictoriaPASS

Donabel Santos

@sqlbelle

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 1

whoisdonabel?

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 2

sqlmusings.com

@sqlbelle

BCIT/QueryWorks

Packt, Manning etc.

VANPASS, SQL Saturdays

SQL Saturday #198 Vancouver – Feb 16, 2013

• http://sqlsaturday.com/198/eventhome.aspx

Agenda

• SSRS Programmatically

▫ Web Service

▫ ReportViewer Redistributable

• Demos, demos

• Wrap Up

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 4

SSRS Programmatically (1/2)

• Web Service

▫ Endpoints for accessing and managing objects on report server

http://<ServerName>/ReportServer/ReportService2010.asmx

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 6

From MSDN: The ReportService2010 endpoint merges the functionalities of ReportService2005 and ReportService2006 and can manage objects on a report server that that are configured for either native or SharePoint integrated mode.

SSRS Programmatically (1/2)

SSRS Programmatically (1/2)

• Web Service

▫ Endpoints for accessing and managing objects on report server

http://<ServerName>/ReportServer/ReportService2010.asmx

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 8

SSRS Programmatically (2/2)

• ReportViewer Redistributable

▫ Provides web and form controls for viewing reports

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 10

SSRS Programmatically (2/2) ▫ http://www.microsoft.com/en-ca/download/details.aspx?id=6442

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 11

SSRS Programmatically (2/2)

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 12

Demos

• Listing folders and reports

▫ Listing report properties

▫ Searching for reports

• Creating folders

• Uploading reports

• Rendering and downloading reports

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 13

Known Issue

• Web Service

▫ Works once .. Not twice .. Not thrice ..

Cannot convert argument "Properties", with value:

"SSRS.Property", for "CreateFolder" to type

"SSRS.Property[]": "Cannot convert

the "SSRS.Property" value of type "SSRS.Property" to

type "SSRS.Property"."

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 14

$proxy = New-WebServiceProxy -Uri $ReportServerUri

-UseDefaultCredential -Namespace SSRS

$property = New-Object "SSRS.Property"

Why?

• Seems to be a namespace clash

• When you run the second time, that namespace is already there

• Remember these are created and cached at the server, not the client

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 15

Resolution

• Dynamically generate the fully qualified name

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 16

Wrap Up

• SSRS Programmatically

▫ Web Service

▫ ReportViewer Redistributable

• Demos, demos

read my blog sqlmusings.com follow me on twitter @sqlbelle contact me [email protected] 17