In my company, they’ve been using an application to manually move documents from one network drive to another network drive one doc at a time. Subsequently, as the docs are moved/copied, the following are inserted into two SQL Server tables:
- The new file path for each doc
- The doc name prefixed by auto incrementing value
- Each folder names must be parsed and inserted into tables, which are underscore delimited (ABC_DE_FG HI JKL_MIN MIN MIN MIN_OP-QR-STU_VWXYZ).
This was done using a stored procedure that has multiple parameters: after a person passes the parameters in the app, the stored procedure will insert the related data into two tables and the application moves/copies the document.
So, this manual task has become tedious and we want to do it using SSIS. My question is how do I go about accomplishing this? I’ve read some articles that talk about copying files using Foreach Loop and/or File System…but how do I make sure that as the docs are moved/copied, the related data are inserted into the intended tables?
Thank you in advance,
~In-