I have a requirement to create SSIS package to restore .bak files and while restoring, package have to shrink .mdf files?will the package fulfil the requirement?
Thanks.
I have a requirement to create SSIS package to restore .bak files and while restoring, package have to shrink .mdf files?will the package fulfil the requirement?
Thanks.
There is no any task for Database restore in SSIS. However, you can take help of LOOP and Script task to make it.
http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/automate-database-restore-to-remote/
You can use the SHRINK DATABASE TASK to shrink the databases. It uses the command DBCC SHRINKDATABASE
that can be implemented in previous approach as well.