Technology Programming

Configuring Log Shipping in SQL Server 2008



Log shipping allows you to keep two SQL Server databases synchronized for high availability. In a log shipping relationship, the primary server transfers copies of its transaction logs to the secondary server on a periodic basis. The secondary server receives those logs and uses them to update its copy of the database so that it is then in the same state as the database on the primary server.

Difficulty: Average

Time Required: One hour

Here's How:
  1. Create the target database on the secondary server by restoring a full backup of the database from the primary server. Be sure to include backups of the transaction logs by using the WITH NORECOVERY option.
  2. Create a network file share on the primary server (or another location available to both servers) that will store the transaction log backups.
  3. Connect to the primary server using SQL Server Management Studio and expand the Databases folder. Locate the database you wish to replicate, right-click on it and choose Tasks -> Ship Transaction Logs from the pop-up menu.
  4. Select the "Enable This as a Primary Database in a Log Shipping Configuration" check box.
  5. Click the Backup Settings button.
  6. In the network share textbox, enter the path to the share you created in Step Two. If the share is on the primary server, also enter the path in the second textbox.
  7. Click OK to close the Transaction Log Backup Settings window.
  8. In the Secondary Databases section of the Transaction Log Shipping properties page, click the Add button.


  1. Click the Connect button and provide connection details for the secondary server that will receive the transaction log backups from the primary server.
  2. Verify that the Secondary Database drop-down box contains the name of the database you created on the secondary server in Step One.
  3. Select the Copy Files tab.
  4. Provide the destination folder for the copied files on the secondary server. This is a temporary storage location, so you may choose any path you wish.
  5. Review the other settings and make any changes you deem appropriate, then click the OK button to continue.
  6. Repeat Steps Nine through Thirteen for any additional secondary servers if you wish to configure more than one transaction log recipient.
  7. Click OK to close the Database Properties window. SQL Server will then display a status window while it configures transaction log shipping.

What You Need:
  • Microsoft SQL Server 2008
  • SQL Server Management Studio
SHARE
RELATED POSTS on "Technology"
WordPress - How to Set up a New Theme to WordPress 3.
WordPress - How to Set up a New Theme to WordPress 3.
Solution of Creative Web Design
Solution of Creative Web Design
The three disciplines of User Experience
The three disciplines of User Experience
Web Design Sheffield Options For Professional Enterprises
Web Design Sheffield Options For Professional Enterprises
Do you have what it takes?
Do you have what it takes?
Segway Cost
Segway Cost
Microsoft Access 2010: What's Coming with Office 2010?
Microsoft Access 2010: What's Coming with Office 2010?
Companies of Web Development in Ireland Provide Designs that Work
Companies of Web Development in Ireland Provide Designs that Work
Penguin Update to Put Red-Flags on Negative SEO
Penguin Update to Put Red-Flags on Negative SEO
Innovative web 2 design templates can make your business famous quickly
Innovative web 2 design templates can make your business famous quickly
Building A Search Engine Friendly Website
Building A Search Engine Friendly Website
Exceptional Advice To Build Up Your Internet Marketing
Exceptional Advice To Build Up Your Internet Marketing
The Benefits of Selecting The Right Hosting Company
The Benefits of Selecting The Right Hosting Company
Is There a Methodology for Making Successful Logos
Is There a Methodology for Making Successful Logos
Benefits of Ruby On Rails Development
Benefits of Ruby On Rails Development
The Power of Colour and Shapes in Your Infant's Life.
The Power of Colour and Shapes in Your Infant's Life.
Advantages of Hiring PSD To HTML Service Providers
Advantages of Hiring PSD To HTML Service Providers
How to Make Responsive Web Design Attractive?
How to Make Responsive Web Design Attractive?
Converting PSD to Responsive HTML
Converting PSD to Responsive HTML
Just a few realy really hints and tips when it comes to website design but look for.
Just a few realy really hints and tips when it comes to website design but look for.

Leave Your Reply

*