SSIS Tutorial Part 17 - Create Excel File with DateTime On Each Package Execution in SSIS Package

In this video of SQL Server Integration Services(SSIS) Tutorial, you will learn how to create An Excel file with date-time on each package execution. This is important when we want to run our package multiple times in a days and
don't want to append the data to already existing Excel File.

The video will cover following Items

  1. How to Load Data from SQL Server Table to Excel Sheet
  2. How to use Data Conversion Transformation to Convert SQL Data To Excel Data Types
  3. How to use OLE DB Source and Excel Destination in SSIS Package
  4. How to use Variables in SSIS Package
  5. How to Write Expressions to get Date-time in SSIS Package
  6. How to use variable in Excel Connection Manager to provide File Name with Date-time
  7. How to use DelayValidation property in SSIS Package to ignore prevalidation in SSIS Package



Expressions used in the SSIS Package to Create Excel file with Date Time:
@[User::DestinationFolder]+"RegionalCustomer_"+Replace(Replace(Substring((DT_WSTR,30)GETDATE(),1,16),":","_"),"-","_")+".xlsx"



5 comments:

  1. [File System Task] Error: An error occurred with the following error message: "Could not find file 'C:\Users\Sujan\Desktop\OUTPUTFOLDER\Template\Customer.xlsx'.".
    hello sir how to fix those error

    ReplyDelete
  2. I also have the same issue as above comment: [File System Task] Error: An error occurred with the following error message: "Access to the path 'c:\users\daniel joubert\Desktop\OutPutFolder\DestinationFolder' is denied.". My guess is that their is a permission issue somwhere between ssis and my local laptop. How to fix this I am not sure.

    ReplyDelete
    Replies
    1. I used the old version of Excel and it worked. This error caused because you don't have install Microsoft Access Database Engine 2016 Redistributable 64 bit version under Server Objects --> Linked Servers. Which version depends on which version of the Excel you use. But you can google it

      Delete
  3. In order to create change, organisations need to change the way they deal with the information and documentation they use every day and look to excelling in their business aspirations and actively obtain Operational Excellence through utilising that information, documentation and knowledge already being developed through tools and structure, which can be established to create that same drive and aspiration for businesses everywhere. Businesses always need to 'up the ante' when it comes to utilising their information effectively. ppt translator

    ReplyDelete