Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why would SQL Server get a database stuck in DATABASE_SNAPSHOT_CREATION?

I've a database in a production server which has a log that is getting enormous, while trying to understand the reason, I've issued this query:

SELECT name, log_reuse_wait_desc FROM sys.databases

The database in question has DATABASE_SNAPSHOT_CREATION, and even tough the docs say it should be a momentary state, it's been in this state for 10 mins. I'm guessing it's what's keeping the log from becoming manageable.

How can I fix this?

PS: I'm using the SIMPLE recovery mode.

like image 900
Pablo Montilla Avatar asked Mar 10 '26 13:03

Pablo Montilla


1 Answers

OK - Try running DBCC SQLPERF(LOGSPACE). That will tell you how much of that log file is actually being used.

like image 89
Brian Knight Avatar answered Mar 13 '26 17:03

Brian Knight



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!