Lez
2009-09-14 22:05:48 UTC
Hi Guys,
I have few questions that hopefully will give me the correct way forward
with these issues.
As part of a project I receive 3 CSV files, all need to be imported into my
database requiring the following process
1. CSV flat file data to be imported into temp tables
2. temp tables need to update the data in the production tables.
3. Insert query needs to run to append any new data from temp tables.
4. This process needs to run once every 24 hours
I have been struggling trying to find the correct/best method to handle
this. I have been trying to create a bulk insert for the temp tables, but
have not been able to get it to work correctly due to the file text
delimiters from the header and field values.
I then discovered the SSIS facility and have been able to do a 'manual
import of these CSV files, but have been unable save these as a package and
then re-run without going through the wizard each time.
My questions are therefore:
1. How can I run a saved SSIS package once it has been created (I have tried
saving as a file and on server)
2. Can I run the package as a task
3. Can I use SSIS to run update and insert queries
4. As a complete novice to this, can you recommend any good online
tutorials/videos to learn from.
The final use of the project is using the SQL database as a backend for an
MSAccess front end application.
My setup is Product: SQL2005 (SQL EXPRESS) on Windows server 2008
Hopefully I have provided sufficient information, but if you require any
further info please ask
Regards
Lez
I have few questions that hopefully will give me the correct way forward
with these issues.
As part of a project I receive 3 CSV files, all need to be imported into my
database requiring the following process
1. CSV flat file data to be imported into temp tables
2. temp tables need to update the data in the production tables.
3. Insert query needs to run to append any new data from temp tables.
4. This process needs to run once every 24 hours
I have been struggling trying to find the correct/best method to handle
this. I have been trying to create a bulk insert for the temp tables, but
have not been able to get it to work correctly due to the file text
delimiters from the header and field values.
I then discovered the SSIS facility and have been able to do a 'manual
import of these CSV files, but have been unable save these as a package and
then re-run without going through the wizard each time.
My questions are therefore:
1. How can I run a saved SSIS package once it has been created (I have tried
saving as a file and on server)
2. Can I run the package as a task
3. Can I use SSIS to run update and insert queries
4. As a complete novice to this, can you recommend any good online
tutorials/videos to learn from.
The final use of the project is using the SQL database as a backend for an
MSAccess front end application.
My setup is Product: SQL2005 (SQL EXPRESS) on Windows server 2008
Hopefully I have provided sufficient information, but if you require any
further info please ask
Regards
Lez