Hi All,
Here is my scenario,
I have a SQL 2005 and 2008 instance, where disk space is very minimal. Transaction log file in some Dbs eats up the disk space at times. So i have to login and shrink the log file to release the disk space( eventhough shrinking is not a good pratice, but no other way).
Is ther a way i could automate this. Say, if the log for a DB filled up the disk, an event should trigger a job, which has SP that contains dbcc shrinkfile and the database concerned is queried from sys.databases and sys.master_files based on reuse_desc dynamically. The job runs and releases the disk space.
Provide me your valuable recommendations on how to accomplish this task.
Thanks