tgoop.com/sql_server/723
Last Update:
سلام خدمت دوستان عزیزم
امیدوارم حالتون خوب خوب باشه
شاید به این مساله برخورد کرده باشین، زمانی که دارین Maintenance Plan ایجاد می کنید که Backup رو از یک مسیر خاص در یک بازه زمانی خاصی حذف کنه ، هیچ خطایی رخ نمیده ولی هیچ فایلی هم پاک نمیشه!
وقتی شما یک Maintenance Plan ایجاد می کنید ، با استفاده از دستور XP_Delete_File این اتفاق می افته.
این دستور یک Extended PRocedure هست و چک می کنه که فایلهای فوق هم ساختار Backup های SQL Server رو داشته باشن و هم اینکه مربوط به دیتابیس های همون Instance باشه که این دستور اونجا اجرا میشه.
مثلا ممکنه روی یک سرور چند تا Instance باشه و داخل یک مسیر مشخص Backup گرفته باشن. این مکانیزم باعث میشه جلوگیری کنه از حذف فایلهای غیر مرتبط و اشتباه.
امیدوارم این نکته براتون مفید باشه
شاد باشین و شکرگزار☺️☺️
حمیدرضا صادقیان
Hello, my dear friends,
I hope you are all doing well. Perhaps you have encountered this issue before: when you create a Maintenance Plan to delete backups from a specific path within a specific time interval, no errors occur, but no files are deleted either!
When you create a Maintenance Plan, this happens using the XP_Delete_File command. This command is an Extended Procedure that checks whether the files have the structure of SQL Server backups and belong to the databases of the same instance where this command is executed.
For example, there may be multiple instances on a server, and they may have taken backups in a specific path. This mechanism prevents the accidental deletion of unrelated files.
I hope this information is helpful for you.
Stay happy and grateful ☺️☺️
@hamidreza_Sadeghian
BY SQL Server
Share with your friend now:
tgoop.com/sql_server/723
