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!

Copy Database

Status
Not open for further replies.

jdonalds

MIS
Jan 9, 2004
95
0
0
US

I have a live production database that I would like to use to create a test database with. What's the best approach for replicating the database (permissions and all) with a different name on the same instance of SQL Server?

Thanks,
Jeremy
 
agreed. backup and restore will be your best bet.

Denny

--Anything is possible. All it takes is a little research. (Me)
 

Can I do this while users are accessing the live database?
 
Yes. Backups performed within SQL Server are done hot (with people using the database).

Denny

--Anything is possible. All it takes is a little research. (Me)
 
Does anyone know the code to do this with a schedualed job ?
 
YOu could use DB Maintainence Planner to create a backup and restore job with the time interval you want. This will create 2 jobs. You can monitor the jobs.

--Kishore
 
I've created an FAQ to show a good method for handeling database backups faq962-5722.

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(My very old site)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top