Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Call SSRS package from Stored Procedure or From SSIS?


Call SSRS package from Stored Procedure or From SSIS?

Author
Message
vijayraj105
vijayraj105
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 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
oppelts
oppelts
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 48
Hi! Did you ever find out how to do this?
sqlservercentral@onskee.com
sqlservercentral@onskee.com
Valued Member
Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)

Group: General Forum Members
Points: 59 Visits: 292
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?



Mohan.deval
Mohan.deval
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 104
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




rwlp.french
rwlp.french
SSC Rookie
SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)

Group: General Forum Members
Points: 40 Visits: 782
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?
Mark Eytcheson
Mark Eytcheson
Old Hand
Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)

Group: General Forum Members
Points: 379 Visits: 8672
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.
sunilreddy
sunilreddy
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 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 :-)
manoranjangopi
manoranjangopi
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
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.
sunilreddy
sunilreddy
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 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 :-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search