Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 The transaction log for database 'WSS_Content_80_P

Author  Topic 

getur.srikanth@gmail.com
Yak Posting Veteran

77 Posts

Posted - 2010-04-07 : 17:10:26
I am trying to add contentDB from Prod to QA. I used below command

stsadm -o addcontentdb -url http://portalqa.spe.org -databasename WSS_Content_80_Prod -databaseserver spdbqa1\qa

It is throwing an error below

The transaction log for database 'WSS_Content_80_Prod' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases Changed database context to 'WSS_Content_80_Prod'.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-07 : 18:11:45
You need to either start backing up your transaction log or switch your recovery model to SIMPLE. In either case, you will likely need to shrink the file down as it most likely has grown out of control due to lack of maintenance.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

DBA in the making
Aged Yak Warrior

638 Posts

Posted - 2010-04-07 : 18:14:50
It's telling you to run a query like this:

SELECT log_reuse_wait_desc
FROM sys.databases
WHERE DB_name(database_id) = 'WSS_Content_80_Prod'

How often are the logs for this database backed up?

There are 10 types of people in the world, those that understand binary, and those that don't.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-07 : 18:28:02
Well that query doesn't help unless you are a DBA. A DBA would know what to do with that error, so I don't think the query is going to help the OP.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -