I need to write a script in SQL 2008 R2 integration Services to CREATE copies of Word documents from a database while also creating new primary key (ID) and attributes (such as the paths) .Is this possible? Does anyone know how?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are your documents actually stored in the database? Often times only the path is stored in the database and the actual file data is stored on the filesystem.
You will need to create:
1) Filesystem task to copy the word document to the desired location on the filesystem
2) Execute SQL Task to update or insert a record into the database with the new file location
You should use variables for the file names so that way you can easily update your database with the same values.