Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / July 2008

Tip: Looking for answers? Try searching our database.

Restore a copy of one database over another database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Starfish - 25 Jul 2008 15:54 GMT
Hello, we have a live production database and then another database that is
just for testing purposes. We would like to update the test database so that
it is identical to the live database. Someone told me that I can just take a
copy (i'm assuming he means backup) of my live database and restore over the
existing test database. I'm not exactly sure how to do this though. I want to
make sure that I'm not restoring over the live database. Can anyone explain
the best way to do this? Thank you. I am running SQL 2000 SP4 Enterprise
Edition.
TheSQLGuru - 25 Jul 2008 16:33 GMT
Make a full backup of the production system.

On the test system, use RESTORE DATABASE command and specify the REPLACE
option.  If test and production are on the same server, triple check that
you have the correct database name! :-)

See Books online for technical info on the backup and restore commands.

Signature

Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net

> Hello, we have a live production database and then another database that
> is
[quoted text clipped - 10 lines]
> the best way to do this? Thank you. I am running SQL 2000 SP4 Enterprise
> Edition.
JOH - 25 Jul 2008 21:32 GMT
> Make a full backup of the production system.
>
[quoted text clipped - 24 lines]
> > the best way to do this? Thank you. I am running SQL 2000 SP4 Enterprise
> > Edition.

Also, BACKUP now has the COPY_ONLY option.  The joy of this little gem
is that you can now take a backup of production  _without_  breaking
the backup chain.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.