My question is, should I be running one or both of the shrink command regularly,
Sql Server: Database is 200 gigs, logs are 150 gigs.
running this command
SELECT name ,size/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int) / 128.0 AS AvailableSpaceInMB FROM sys.database_files;`
produces this output..
MyDB: 159.812500 MB free
MyDB_Log: 149476.390625 MB free
So it seems there is some free space.
Our backup schedule is as follows:
- Transaction Logs Once an hour
- Full Backups twice a week
- Differential Backups 5 times a week