SSIS package: Import and Export data through flat files

Posted on 2011-09-22
Last Modified: 2013-11-10

I need to make packages on two different servers.

From one server, I need to export data on daily basis in to flat files and another package will import data from those flat files to database.

But I need to make package in systematic way as below:

1. Configuration manager (so that manage at run time at deployment). FYI, i can manage it through XML configuration.

2. Logging i.e. how many insert count and update count from a particular table at destination server when import from flat files will be occur.

3. If session break in mid either import/export then all transaction should be rollback. Also, need to give option to user in XML configuration to execute package on date range basis.

4. How can i manage packages like first master records should be inserted and after that transaction records will be inserted so that Foreign Key constraints should not be violated?

4. The package should be executed by SQL Server Agent on daily basis.

Kindly give answers as gradually aforesaid questions.

Best Regards,
Question by:MohitPandit
  • 3

Author Comment

ID: 36585040

Author Comment

ID: 36586303
Can anyone assist on it?
LVL 21

Accepted Solution

Jason Yousef, MS earned 500 total points
ID: 36892337
You're actually asking for too much here.
You'll need to research each of your points and break it down .

1-read about ssis package configuration

2-ssis custom logging

3-ssis checkpoints

4-you could use your own logic in sql query or lookup task in ssis

5-schedule ssis packages using SQL agent

Hope that helps answer all your questions.


Author Closing Comment

ID: 36908864
Thank you.

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calculate values in an array 18 32
HasClusteredColumnStoreIndex: unknown property 2 56
MSSQL: Replace text (typo) 7 28
Query / Window function ? 3 13
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now