dbTalk Databases Forums  

Best way of user copying database on same server

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Best way of user copying database on same server in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
brcwwcrb
 
Posts: n/a

Default Best way of user copying database on same server - 01-06-2005 , 08:31 AM






We have a situation where we having a training database on the same
instance as the live database. At irregular intervals, a user needs
to copy recent live data over on to the training database. In the
past, this has been done by the user restoring the latest backup over
the training database, but this requires them to have sys admin rights
on SQL, which I'm rescinding.

I've tried using DTS, but haven't yet figured it out - the closest
I've got was using the import/export wizard, but using "copy objects
and data" means all the new objects have the user as the owner instead
of dbo.

Any suggestions as to a sensible way of setting this up?

Many thanks
Bernard

Reply With Quote
  #2  
Old   
The Margolins
 
Posts: n/a

Default Re: Best way of user copying database on same server - 01-09-2005 , 01:48 PM






Bernard,

User security can be limited to db_owner or db_backupoperator fixed database
roles to be able to backup. For restore CREATE DATABASE permissions are
needed for brand new database and dbcreator fixed server role and the owner
(dbo) of the database for existing database. See permissions section in:

http://msdn.microsoft.com/library/de...ba-bz_35ww.asp
http://msdn.microsoft.com/library/de...ra-rz_25rm.asp

Ilya

"brcwwcrb" <brcw2 (AT) yahoo (DOT) com> wrote

Quote:
We have a situation where we having a training database on the same
instance as the live database. At irregular intervals, a user needs
to copy recent live data over on to the training database. In the
past, this has been done by the user restoring the latest backup over
the training database, but this requires them to have sys admin rights
on SQL, which I'm rescinding.

I've tried using DTS, but haven't yet figured it out - the closest
I've got was using the import/export wizard, but using "copy objects
and data" means all the new objects have the user as the owner instead
of dbo.

Any suggestions as to a sensible way of setting this up?

Many thanks
Bernard



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.