问题
Who can explain list of xp_Delete_file
parameters in sql server. I don't find msdn document for this stored procedure.
I got script of xp_Delete_file from maintenance plan but didn't understand first parameter.
回答1:
Xp_delete_file take five parameters:
- File Type = 0 for backup files or 1 for report files.
- Folder Path = The folder to delete files. The path must end with a backslash "\".
- File Extension = This could be 'BAK' or 'TRN' or whatever you normally use.
- Date = The cutoff date for what files need to be deleted.
- Subfolder = 0 to ignore subfolders, 1 to delete files in subfolders.
Source How to Use xp_delete_file to Purge Old Backup Files by Patrick Keisler
来源:https://stackoverflow.com/questions/24582996/sql-server-xp-delete-file-parameters