Avatar of swan_solutions
swan_solutions
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

Shrinking SQL Transaction Log

I am attempting to shrink a transaction log which is currently 15GB. The reason being, we only have 2GB of disk space left on the partition. Given my very limited knowledge of SQL, I have managed to understand the very basics of the DBCC Shrinkfile tool. However, when I attempt to execute the following command:

BACKUP LOG live_log WITH TRUNCATE_ONLY

I get the following error messages:

Server: Msg 911, Level 16, State 1, Line 1
Could not locate entry in sysdatabases for database 'live_log'. No entry found with that name. Make sure that the name is entered correctly.
Server: Msg 3013, Level 16, State 1, Line 1
BACKUP LOG is terminating abnormally.

Can anyone shed some light please
SQL-Error.pdf
DatabasesMicrosoft SQL Server

Avatar of undefined
Last Comment
swan_solutions

8/22/2022 - Mon