﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Programming / Powershell  / SSRS report powershell script / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 09:12:46 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SSRS report powershell script</title><link>http://www.sqlservercentral.com/Forums/Topic1414803-1351-1.aspx</link><description>For one, you do not define $dataSourceReferenceType:$dataSourceReferenceType=New-Object "$ns.DataSourceReference"What's the output?Jeroen</description><pubDate>Fri, 17 May 2013 03:40:30 GMT</pubDate><dc:creator>j.hems</dc:creator></item><item><title>RE: SSRS report powershell script</title><link>http://www.sqlservercentral.com/Forums/Topic1414803-1351-1.aspx</link><description>Can anyone tell what's missing in this?-------------------------------------------------------$reportServerName = "SSRS01"$currentPath ="/Marketing/test1"$reportServerUri = "http://{0}/ReportServer/ReportService2010.asmx" -f $reportServerName$proxy = New-WebServiceProxy -Uri $reportServerUri -Namespace SSRS.ReportingService2010 -UseDefaultCredential     $type =$proxy.GetType().Namespace$dataSourceArrayType = ($type + '.DataSource[]')$dataSourceType = ($type +'.DataSource')$numDataSources = 3$dataSourceArray = New-Object ($dataSourceArrayType)$numDataSources$dataSourceArray[0] = New-Object ($dataSourceType)$dataSourceArray[0].Name = "Marketing1"$dataSourceArray[0].Item = New-Object ($dataSourceReferenceType)$dataSourceArray[0].Item.Reference = "/Shared Data Sources/Marketing1"$dataSourceArray[1] = New-Object ($dataSourceType)$dataSourceArray[1].Name = "Marketing2"$dataSourceArray[1].Item = New-Object ($dataSourceReferenceType)$dataSourceArray[1].Item.Reference = "/Shared Data Sources/Marketing2"$dataSourceArray[2] = New-Object ($dataSourceType)$dataSourceArray[2].Name = "Marketing3"$dataSourceArray[2].Item = New-Object ($dataSourceReferenceType)$dataSourceArray[2].Item.Reference = "/Shared Data Sources/Marketing3"$proxy.setItemDataSources ($currentPath,$DataSourceArray)</description><pubDate>Mon, 04 Feb 2013 08:47:17 GMT</pubDate><dc:creator>bangsql</dc:creator></item><item><title>SSRS report powershell script</title><link>http://www.sqlservercentral.com/Forums/Topic1414803-1351-1.aspx</link><description>I have SSRS 2008R2 reporting having 3 data sources.Say reportname = \Marketing\Test.rdlDataSource name = \Shared DataSources\Data1 , 2 ,3Now when deploy the report using reports manager upload functionality , after deployment it looses all three connection reference.is there any powershell script to set again correct datasource for this 1 report.</description><pubDate>Fri, 01 Feb 2013 12:28:07 GMT</pubDate><dc:creator>bangsql</dc:creator></item></channel></rss>