|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SQL 2005 File IO programmingWe would like to add some capablility in our backup routines to move, copy,
and delete files after backups. For example: After the backup, copy the backup file to another server, then delete old backup files. We use MSSQL backups, SQL Litespeed, and red-gate software depending on the server. Therefore don't use the maintenance plans) What would be the best way to do this? SSIS packages or CLR assembly wrapper to create procedures for IO functionality? Other? Thanks for your help
Show quote
"Mark" <M***@discussions.microsoft.com> wrote in message SSIS.news:B7602B9E-9F98-41B9-9E88-DE5F8932CBE4@microsoft.com... > We would like to add some capablility in our backup routines to move, > copy, > and delete files after backups. For example: After the backup, copy the > backup file to another server, then delete old backup files. We use MSSQL > backups, SQL Litespeed, and red-gate software depending on the server. > Therefore don't use the maintenance plans) > > What would be the best way to do this? > SSIS packages or CLR assembly wrapper to create procedures for IO > functionality? Other? > David
Show quote
"David Browne" wrote: Thanks for your answer.> > "Mark" <M***@discussions.microsoft.com> wrote in message > news:B7602B9E-9F98-41B9-9E88-DE5F8932CBE4@microsoft.com... > > We would like to add some capablility in our backup routines to move, > > copy, > > and delete files after backups. For example: After the backup, copy the > > backup file to another server, then delete old backup files. We use MSSQL > > backups, SQL Litespeed, and red-gate software depending on the server. > > Therefore don't use the maintenance plans) > > > > What would be the best way to do this? > > SSIS packages or CLR assembly wrapper to create procedures for IO > > functionality? Other? > > > > > SSIS. > > David > > Why did you choose SSIS? How would the package be called from a SQL server Stored Procedure? Thanks again, Mark
Show quote
"Mark" <M***@discussions.microsoft.com> wrote in message SSIS has primitives to do database maintence tasks, file system tasks, news:BA2B9776-16A4-4888-9767-7050FF97C37F@microsoft.com... > > > "David Browne" wrote: > >> >> "Mark" <M***@discussions.microsoft.com> wrote in message >> news:B7602B9E-9F98-41B9-9E88-DE5F8932CBE4@microsoft.com... >> > We would like to add some capablility in our backup routines to move, >> > copy, >> > and delete files after backups. For example: After the backup, copy the >> > backup file to another server, then delete old backup files. We use >> > MSSQL >> > backups, SQL Litespeed, and red-gate software depending on the server. >> > Therefore don't use the maintenance plans) >> > >> > What would be the best way to do this? >> > SSIS packages or CLR assembly wrapper to create procedures for IO >> > functionality? Other? >> > >> >> >> SSIS. >> >> David >> >> > Thanks for your answer. > Why did you choose SSIS? invoke external executables and and CLR script tasks. SSIS packages can be run from SQL Agent jobs and fit right in to the DBA's toolset. >How would the package be called from a SQL server Stored Procedure? Through the SQL Server Agent. Create a job for the package and kick it off with sp_start_job, or schedule it, or run it manually. David Davud Show quote > > Thanks again, > > Mark I would use CLR proc as the IO namespace is very rich and you can do about
anything. -- Show quoteWilliam Stacey [MVP] "Mark" <M***@discussions.microsoft.com> wrote in message news:B7602B9E-9F98-41B9-9E88-DE5F8932CBE4@microsoft.com... | We would like to add some capablility in our backup routines to move, copy, | and delete files after backups. For example: After the backup, copy the | backup file to another server, then delete old backup files. We use MSSQL | backups, SQL Litespeed, and red-gate software depending on the server. | Therefore don't use the maintenance plans) | | What would be the best way to do this? | SSIS packages or CLR assembly wrapper to create procedures for IO | functionality? Other? | | Thanks for your help Consider calling both the backup process and the file copy from SSIS.
Show quote "Mark" <M***@discussions.microsoft.com> wrote in message news:B7602B9E-9F98-41B9-9E88-DE5F8932CBE4@microsoft.com... > We would like to add some capablility in our backup routines to move, > copy, > and delete files after backups. For example: After the backup, copy the > backup file to another server, then delete old backup files. We use MSSQL > backups, SQL Litespeed, and red-gate software depending on the server. > Therefore don't use the maintenance plans) > > What would be the best way to do this? > SSIS packages or CLR assembly wrapper to create procedures for IO > functionality? Other? > > Thanks for your help |
|||||||||||||||||||||||