November 1, 2008 at 3:12 am
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
August 23, 2010 at 8:47 am
Hi! Did you ever find out how to do this?
September 9, 2010 at 12:47 pm
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?
January 5, 2011 at 2:36 pm
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
January 6, 2011 at 2:32 am
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?
February 25, 2011 at 7:39 am
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.
August 30, 2012 at 2:02 pm
September 26, 2013 at 5:41 am
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.
September 26, 2013 at 6:24 am
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 🙂
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply