I once met a user who has a very large MSDB database and asked me to help find out why. Use sp_spaceused to find the data size of all tables. The problem is that SQL Server
I once met a user who has a very large MSDB database and asked me to help find out why. Use sp_spaceused to find the data size of all tables. The problem is that SQL Server
Query and clear SQL Server database backup and restoration history
[Date: 2012-10-19] Source: Linux Author: SmithLiu328 [Font:]
I once met a user who has a very large MSDB database and asked me to help find out why. Use sp_spaceused to find the data size of all tables. The problem is that SQL Server backs up and restores the historical table to a large amount of data. You often back up logs, but never clear historical records. Later, the maintenance plan was set to regularly clear the backup records, and the problem would not occur.
The statements for querying SQL Server backup and restoration records and scripts for clearing database backup and restoration are listed here:
-- Query SQL Server backup history
SELECT
100
ORDER
50
50
Use msdb
Go
GO