SQL Server 2000 - Copy a production database to a test server every day automatically

This is a discussion on SQL Server 2000 - Copy a production database to a test server every day automatically within the sqlserver-server forums in Microsoft SQL Server category; I have a production database running on SQL Server 2000. I need to copy this database to a test server every night, automatically. I'm not able to use backup/restore method because the production server uses Tivoli Data Protection for SQL Server, and I don't know how to use this backup and restore on a different server. I cannot run another full backup only to copy to the test server because we also run backups for the transaction log every hour, and SQL Server 2000 does not have the copy-only option. What's the best method to ...

Go Back   Database Forum > Microsoft SQL Server > sqlserver-server

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-25-2008, 07:10 PM
Default SQL Server 2000 - Copy a production database to a test server every day automatically

I have a production database running on SQL Server 2000.
I need to copy this database to a test server every night, automatically.
I'm not able to use backup/restore method because the production server uses
Tivoli Data Protection for SQL Server, and I don't know how to use this
backup and restore on a different server.
I cannot run another full backup only to copy to the test server because we
also run backups for the transaction log every hour, and SQL Server 2000
does not have the copy-only option.
What's the best method to have the production database copied every night to
the test server automatically?

Thanks,

Felipe


Reply With Quote
  #2  
Old 08-25-2008, 07:33 PM
Default Re: SQL Server 2000 - Copy a production database to a test server every day automatically

On Mon, 25 Aug 2008 19:10:21 -0300, "Carlos Felipe França da Fonseca"
wrote:

>I have a production database running on SQL Server 2000.
>I need to copy this database to a test server every night, automatically.
>I'm not able to use backup/restore method because the production server uses
>Tivoli Data Protection for SQL Server, and I don't know how to use this
>backup and restore on a different server.


Someone needs to know how to do that. If it is not your job, you
might do well to find the one responsible.

>I cannot run another full backup only to copy to the test server because we
>also run backups for the transaction log every hour, and SQL Server 2000
>does not have the copy-only option.


I don't know what that means. I know of not reason why you can't run
another BACKUP DATABASE, as long as you don't schedule it to run at
the same time as any of the BACKUP LOG commands.

>What's the best method to have the production database copied every night to
>the test server automatically?


BACKUP and RESTORE.

Roy Harvey
Beacon Falls, CT
Reply With Quote
  #3  
Old 08-25-2008, 08:22 PM
Default Re: SQL Server 2000 - Copy a production database to a test serverevery day automatically

wrote:
> I have a production database running on SQL Server 2000.
> I need to copy this database to a test server every night, automatically.
> I'm not able to use backup/restore method because the production server uses
> Tivoli Data Protection for SQL Server, and I don't know how to use this
> backup and restore on a different server.
> I cannot run another full backup only to copy to the test server because we
> also run backups for the transaction log every hour, and SQL Server 2000
> does not have the copy-only option.
> What's the best method to have the production database copied every night to
> the test server automatically?
>
> Thanks,
>
> Felipe
>
>

A dirty solution would be to copy it with the help of volume shadow
copies and "vshadows" from the vss sdk:
http://blogs.msdn.com/adioltean/arch...25/517599.aspx
and attach it.

Regards,
Peter
Reply With Quote
  #4  
Old 08-28-2008, 09:25 AM
Default Re: SQL Server 2000 - Copy a production database to a test server

You can do this in a simple way.

a) Backup to disk and then TSM (Tivoli Storage Manager)
1) Make your test SQL Server run under a domain account
2) Share the backup folder of your prod server - grant rights to the
test-sql-server account
3) schedule a daily restore from the shared backup folder (you might have to
map it to a driveletter before trying to connect) From either SQL Agent or
Scheduled tasks in Windows.

b) TSM
It is possible to restore to different location because you need to set the
NODE correct before you connect. Ask your backup personell to help you with
this one because you need to run a script that disconnect all logins to the
database before running the restore - otherwise it will fail.

Hope this helps


"Peter Gibbons" wrote:

> wrote:
> > I have a production database running on SQL Server 2000.
> > I need to copy this database to a test server every night, automatically.
> > I'm not able to use backup/restore method because the production server uses
> > Tivoli Data Protection for SQL Server, and I don't know how to use this
> > backup and restore on a different server.
> > I cannot run another full backup only to copy to the test server because we
> > also run backups for the transaction log every hour, and SQL Server 2000
> > does not have the copy-only option.
> > What's the best method to have the production database copied every night to
> > the test server automatically?
> >
> > Thanks,
> >
> > Felipe
> >
> >

> A dirty solution would be to copy it with the help of volume shadow
> copies and "vshadows" from the vss sdk:
> http://blogs.msdn.com/adioltean/arch...25/517599.aspx
> and attach it.
>
> Regards,
> Peter
>

Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 07:51 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.