Hello
I've been using a combination of SQL Scripts and SQL 2000 DTS packages for
data transfer work for the past 18 months.
I would like to start using SSIS instead but am not really sure where to
start. I have managed to do a simple import in the SSIS environment but I
would really like to do is........
Develop a package which can take a configuration file as input which
stipulates sets of transfers for the overall package. The configuration file
would be used to define the following for each transfer in the package:-
A Data source (e.g. CSV files, SQL DB source with a SQL query)
Different SQL Server Destinations Tables
Column mapping between the source and destination
Defaults for columns
Conversion rules for columns e.g. if columnA value = '45' set ColumnA = '105'
(The config file needs to be something like an XML file or an excel sheet
which I can take out of the office to configure)
I'd like the package to deal with the following generic issues, which I have
found with data transfers in the past.
1. If a columns destination is a date and the source is not a date change it
to the column default
2. If a columns destination is a mandatory field and the source is empty
change it to the column default
3. If a columns destination is a mandatory field and the source is empty
change it to the column default
4. Ignore all truncation errors, if a field is too long simply cut it off at
the field length
5. If a columns destination is a field with a FK attached to it the source is
empty change it to the column default.
My question is to achieve the above can I use SSIS?
And if I can use SSIS what techniques do I need to learn for this?
Cheers
Spangeman
I've been using a combination of SQL Scripts and SQL 2000 DTS packages for
data transfer work for the past 18 months.
I would like to start using SSIS instead but am not really sure where to
start. I have managed to do a simple import in the SSIS environment but I
would really like to do is........
Develop a package which can take a configuration file as input which
stipulates sets of transfers for the overall package. The configuration file
would be used to define the following for each transfer in the package:-
A Data source (e.g. CSV files, SQL DB source with a SQL query)
Different SQL Server Destinations Tables
Column mapping between the source and destination
Defaults for columns
Conversion rules for columns e.g. if columnA value = '45' set ColumnA = '105'
(The config file needs to be something like an XML file or an excel sheet
which I can take out of the office to configure)
I'd like the package to deal with the following generic issues, which I have
found with data transfers in the past.
1. If a columns destination is a date and the source is not a date change it
to the column default
2. If a columns destination is a mandatory field and the source is empty
change it to the column default
3. If a columns destination is a mandatory field and the source is empty
change it to the column default
4. Ignore all truncation errors, if a field is too long simply cut it off at
the field length
5. If a columns destination is a field with a FK attached to it the source is
empty change it to the column default.
My question is to achieve the above can I use SSIS?
And if I can use SSIS what techniques do I need to learn for this?
Cheers
Spangeman