ssis package format in excel

泪湿孤枕 提交于 2019-12-13 06:17:37

问题


i need create an ssis package ouput in this following format in excel

           India
          Employee report

Report run date : 24/01/2012

id    name      address
1     manoj     blore
2     manu      chennai
3     anu       chennai
4     vani      mumbai

write now my dataset contains like this

   id    name      address
    1     manoj     blore
    2     manu      chennai
    3     anu       chennai
    4     vani      mumbai

these things will be dynamic

     India
              Employee report
Report run date : 24/01/2012  

i can hold all these dyanamic values in an variables and use it

how can i get the above format result pls let me know how to go ahead.

i wanted the result to be shown like the above format

is there any solution we can get it done ,i am using sql server r2

Thanks Prince


回答1:


I think the best way to do that is to create script task that connects to Excel sheet and creates rows with that additional data.

Here is some useful links:

http://www.connectionstrings.com/excel

http://www.databasejournal.com/features/mssql/article.php/3919016/Accessing-Excel-Via-ADONET-Using-SSIS-Script-Task.htm



来源:https://stackoverflow.com/questions/9092744/ssis-package-format-in-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!