Home > Ask the SQL Server Experts > Andrew Novick - Development Questions & Answers > SQL Server primary database backup options
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

SQL Server primary database backup options

Andrew Novick EXPERT RESPONSE FROM: Andrew Novick

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 18 March 2005
I am not an expert when it comes to SQL databases. I have two active SQL servers (two separate machines with their own static and unique IPs) on the same network. What I want to do is the following:

1.) Create a link between the two machines so that it is no longer necessary for me to copy the LDF and MDF files.

2.) If one database gets an update it should automatically update the other one as well.

How do I do this?


>

From your question it sounds like you're copying the MDF and LDF files from your primary database to your backup database. I'd guess that you're doing this on a nightly basis. You can achieve similar or better functionality using these approaches:

Approach Latency
Restore a nightly backup Overnight
Log shipping 5 to 60 minutes
Transactional replication Very quick. A couple minutes

By latency, I mean the time difference between when an update is posted to the primary database until it is posted to the backup database. The less latency the more similar the two databases are.

The first approach, restore a nightly backup, is similar to the database file copy that you use now. By switching to restoring a backup you can avoid taking SQL Server down.

The second approach, log shipping, depends on making transaction log backup files from your primary database at frequent intervals and then applying them to the backup database. Log shipping is part of the SQL Server 2000 Enterprise Edition. However, it can be achieved in Standard edition through some script writing.

Transactional replication pumps updates from the primary database to the backup database at a very high frequency. It can keep the backup database almost in synchronization with the primary database. However, it uses the most resources.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Andrew Novick - Development
Nullable fields in a table
Connecting Visual Basic to SQL Server
Stored procedures in Crystal Reports
Storing an image file in SQL Server
Storing large amounts of data as ntext data type
Stored procedures looking at different databases
Code trigger that captures login and system date
Stored procedures and remote procedure calls
Using newid in SQL Server to insert records in parent-child tables
How to use results from one stored procedure in another

SQL Server Replication
SQL Server Mailbag: Migrating down to Standard Edition
Push vs. pull: Configuring SQL Server replication
Top load balancing methods for SQL Server
New replication features in SQL Server 2008 and what they mean to you
SQL Server database replication tutorial
Licensing a standby server for SQL Server replication
Upgrade live applications to SQL Server 2005 for high availability
Tool to synchronize two SQL Server databases
Simplify SQL Server replication
Replication techniques in SQL Server

SQL Server Backup and Recovery
SQL Server Mailbag: Data restoration and DB property management
Achieving high availability and disaster recovery with SharePoint databases
How to 'do' SQL Server disaster recovery
The keys to database backup protection for SQL Server
Choosing a SQL Server disaster recovery solution
Licensing a standby server for SQL Server replication
Can I encrypt and restore a database backup in SQL Server 2005?
SQL Server errors, failures and other problems fixed from the trenches
Get SQL Server log shipping functionality without Enterprise Edition
SQL Server 2008 backup compression pros and cons
SQL Server Backup and Recovery Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
replication  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SQL Solutions - SQL Database Design
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts