|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Thursday, March 17, 2011 1:39 AM
Points: 14,
Visits: 50
|
|
Hello,
Can anyone help me in calling SSRS package from Stored Procedure or From SSIS? We need to execute the SSRS in loop. how this can be achieved?
Thanks in Advance Vijayraj
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, September 11, 2012 9:55 AM
Points: 1,
Visits: 43
|
|
| Hi! Did you ever find out how to do this?
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Thursday, August 30, 2012 2:56 PM
Points: 59,
Visits: 188
|
|
I have not tried this, but have considered it for an upcoming project. Can you create a one-time subscription, which would then create a SQL job.. Then execute that job from your proc/SSIS?
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, December 18, 2012 1:29 PM
Points: 25,
Visits: 95
|
|
I can provide you some tried & tested snippet to call a SSIS Package from SP. You may have to enable the command shell scripting as shown in the snippet since in SQl2008 it is disabled by default.
filePath & filename are user variables in the SSIS package, on which the package is dependendant on. You could try calling a SSRS on similar lines if you haven't yet got what you were looking for.
Cheers !
declare @cmd varchar(1250) declare @ssispath varchar(1250) declare @filePath varchar(1250) declare @fileName varchar(1250) set @ssispath = 'C:\SAPImport\AutomatedZ23Processing.dtsx' set @filePath = 'C:\ExportFileFolder\\' set @fileName = 'test.Xlsx'
select @cmd = 'dtexec /F "' + @ssispath + '"' select @cmd = @cmd + ' /SET \Package.Variables[User::filePath].Properties[Value];"' + @filePath + '"' select @cmd = @cmd + ' /SET \Package.Variables[User::fileName].Properties[Value];"' + @fileName + '"' EXEC sp_configure 'xp_cmdshell', '1' --- Enable Command Shell RECONFIGURE exec master..xp_cmdshell @cmd EXEC sp_configure 'xp_cmdshell', '0' --- Disable Command Shell RECONFIGURE
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 8:06 AM
Points: 10,
Visits: 407
|
|
What l have been able to do do is create a script task using VB.Net that calls an SSRS report passes in the user name, password, parameter then save it as a specified password. However this is done using SSIS 2005 calling SSRS 2008. The previous code l had worked for SSRS 2005 :-(
Is this what you where looking to do?
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, January 19, 2012 3:33 PM
Points: 377,
Visits: 8,621
|
|
| I did something similar to this by setting up a subscription to the SSRS report that occurred once (in the past so it wouldn't actually run) then created a SQL Agent job which has a step in it that executes sp_start_job 'name of SSRS report'. It works well and can be integrated in an SSIS package as well.
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 12:36 AM
Points: 12,
Visits: 324
|
|
To call SSRS reports from SSIS package, refer one of my blog post.
[url=http://msbimentalist.wordpress.com/2011/12/27/execute-ssrs-report-from-ssis-package/][/url]
Let me know if you face any issues while developing.
Thanks Sunil Reddy
sunilreddy http://msbimentalist.wordpress.com
|
|
|
|