Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Call SSRS package from Stored Procedure or From SSIS? Expand / Collapse
Author
Message
Posted Saturday, November 1, 2008 3:12 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

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
Post #595411
Posted Monday, August 23, 2010 8:47 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, July 9, 2014 10:48 AM
Points: 1, Visits: 48
Hi! Did you ever find out how to do this?
Post #973497
Posted Thursday, September 9, 2010 12:47 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, September 5, 2014 7:44 AM
Points: 59, Visits: 196
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?


Post #983387
Posted Wednesday, January 5, 2011 2:36 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, July 29, 2014 8:02 AM
Points: 25, Visits: 99
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



Post #1043353
Posted Thursday, January 6, 2011 2:32 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: 2 days ago @ 8:10 PM
Points: 27, Visits: 594
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?
Post #1043563
Posted Friday, February 25, 2011 7:39 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, August 18, 2014 4:26 PM
Points: 377, Visits: 8,634
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.
Post #1069595
Posted Thursday, August 30, 2012 2:02 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, September 12, 2014 3:51 AM
Points: 19, Visits: 381
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
Post #1352481
Posted Thursday, September 26, 2013 5:41 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, October 7, 2013 1:09 AM
Points: 1, Visits: 6
hi

the process u have provide is working on visual studio 2008.if i want to call in visual studio 2005. there is no option to add web reference.then how we will add web reference.
Post #1498776
Posted Thursday, September 26, 2013 6:24 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, September 12, 2014 3:51 AM
Points: 19, Visits: 381
Please go through the below link, you could get something.

http://msdn.microsoft.com/en-us/library/bb408520(v=exchg.140).aspx

Regards
Sunil Reddy Enugala



sunilreddy
http://msbimentalist.wordpress.com
Post #1498790
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse