January 30, 2011 at 9:20 pm
I intent to perform SSIS.
Once extract is successful. How to generate Excel file into specific folder?
January 31, 2011 at 1:17 am
Little Nick (1/30/2011)
I intent to perform SSIS.Once extract is successful. How to generate Excel file into specific folder?
Do you mean creating a new Excel file?
A script task should be able to do this.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
January 31, 2011 at 1:49 am
DECLARE @strsql NVARCHAR(255)
set @strsql='namefile.xls'
EXEC sp_makewebtask
@outputfile =@strsql,
@query = 'Select * from View1',
@colheaders =1,
@FixedFont=0,@lastupdated=0,@resultstitle='objecttitle:'
January 31, 2011 at 4:58 am
Hi, sp_makewebtask is nice but is a a deprecated feature.
The recommendation is to use SSRS. See:
http://msdn.microsoft.com/en-us/library/ms175576%28v=SQL.90%29.aspx
Regards,
Iulian
January 31, 2011 at 7:45 am
Marco Terzolo (1/31/2011)
DECLARE @strsql NVARCHAR(255)set @strsql='namefile.xls'
EXEC sp_makewebtask
@outputfile =@strsql,
@query = 'Select * from View1',
@colheaders =1,
@FixedFont=0,@lastupdated=0,@resultstitle='objecttitle:'
I hope you can explain line by line. I'm too junior about this script
January 31, 2011 at 7:51 am
Little Nick (1/31/2011)
Marco Terzolo (1/31/2011)
DECLARE @strsql NVARCHAR(255)set @strsql='namefile.xls'
EXEC sp_makewebtask
@outputfile =@strsql,
@query = 'Select * from View1',
@colheaders =1,
@FixedFont=0,@lastupdated=0,@resultstitle='objecttitle:'
I hope you can explain line by line. I'm too junior about this script
Forget about that script.
Try the following link and see if that works for you (a .NET script can be found at the bottom):
http://dbaspot.com/forums/ms-sqlserver/357322-excel-template-required-export-ssis.html
If it is all too complicated, you can just create an empty excel file (a template) and at the beginning of your package copy that Excel file to your destination folder. Then you can write to this Excel file with the Excel Destination in the data flow.
If in doubt, google on the following keywords: SSIS Excel Destination
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply