question

pmanoj avatar image
pmanoj asked

dynamic excel file creation

Hi I have one requirement where we have to create dynamic excel file in sql server integration services and then store that excel file in database table
exceldynamicfile
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sameer 1 avatar image
sameer 1 answered
try checking this article by jstrate: http://www.jasonstrate.com/2011/01/31-days-of-ssis-instant-excel-spreadsheet-1431/ This might be of some use to you.
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

pmanoj avatar image pmanoj commented ·
I am able to create excel but problem is how to store excel file in sql table.
0 Likes 0 ·
Sharma avatar image
Sharma answered
Hope this could help you- > CREATE TABLE dbo.ExcelDoc(FileName > VARCHAR(255) NOT NULL,FileContent > VARBINARY(MAX) NOT NULL); > > > INSERT INTO dbo.ExcelDoc (FileName, > FileContent) SELECT 'SalesData', > BulkColumn FROM OPENROWSET(BULK > 'C:\Test.xls', SINGLE_BLOB ) > as DocFile; > > > SELECT * FROM dbo.ExcelDoc > > > DROP TABLE dbo.ExcelDoc
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

pmanoj avatar image pmanoj commented ·
Thanks amardeep hope it helps me
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.