Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL 2005 Transaction log backup maintenance plan 1

Status
Not open for further replies.

Daveyd123

MIS
Aug 25, 2004
413
US
I am running SQL 2005 SP2.

I have successfully setup a maintenance plan to backup a database every day. However, when I add a subplan to backup the transaction logs and go to choose the database...the database is not listed. I was able to choose it when doing a Full back up, but when choosing a transaction log backup, the same database is not listed.

I assume I am doing something wrong?
 
Is the database setup for full recovery? If not it may not be shown.

Denny
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration)
MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005)

My Blog
 
That was it. Thanks!

Can you tell me what the difference between a simple recovery model and a full recovery model is. SQL noob here
 
Sure.

To cover some basics no matter what recovery level your database is in transactions work the same. A command comes into the SQL Server (an insert for example). That command is written to the transaction log. Every once and a while (usually about every 30-60 seconds, but this can be higher or lower depending on the load of the SQL Server, log space, buffer space, etc.) a checkpoint occures. When a checkpoint occures all the transactions which have been commited to the log but not to the data files are flushed from the transaction log to the data files.

Where the difference happens is what is done with the data in the transaction log after the checkpoing occures.

In Simple recovery mode after the checkpoint flushes the transactions the transactions are removed from the transaction log file.

In full recovery mode the transactions are left in the transaction log until a transaction log backup occures. This allows you to do point to time recovery of the database if you need to restore. Because the transactions are flushed from the log in simple recovery mode transaction log backups are not possible, so point in time restores are not possible.

Denny
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration)
MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005)

My Blog
 
Nice. Makes perfect sense. Thanks again for all your help!
 
No problem.

Denny
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration)
MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005)

My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top