dbTalk Databases Forums  

Ownership objects after copying them with the Copy SQL-Server Obje

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


Discuss Ownership objects after copying them with the Copy SQL-Server Obje in the microsoft.public.sqlserver.dts forum.



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

Default Ownership objects after copying them with the Copy SQL-Server Obje - 09-23-2004 , 08:31 AM






I used the Copy SQL-Server Objects Task to copy tables and views from a
production server to a reporting server. On the production database I created
a database user i.e. ReadUser. On the Reporting database I created the
database user WriteUser. In the Task I defined the ReadUser for the Source
database connection and the WriteUser for the Destination database. I choose
to copy all tables and views and made sure that no privileges or triggers or
whatever would be copied along with the objects (Options in Copy tab).

The funny thing I see is that all tables get the owner dbo, but all views,
exept 2, get the owner WriteUser. I do this with one task. I can't find any
reasson why this is happening. I hop e anyone can tell me why this is
happening.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Ownership objects after copying them with the Copy SQL-Server Obje - 09-23-2004 , 12:47 PM






I dislike this task for his very reason, i.e. it is difficult to use. I
always script things out and apply (Procs, Views etc) and transfer the data
using DataPump tasks.


"freterink" <freterink (AT) discussions (DOT) microsoft.com> wrote

Quote:
I used the Copy SQL-Server Objects Task to copy tables and views from a
production server to a reporting server. On the production database I
created
a database user i.e. ReadUser. On the Reporting database I created the
database user WriteUser. In the Task I defined the ReadUser for the Source
database connection and the WriteUser for the Destination database. I
choose
to copy all tables and views and made sure that no privileges or triggers
or
whatever would be copied along with the objects (Options in Copy tab).

The funny thing I see is that all tables get the owner dbo, but all views,
exept 2, get the owner WriteUser. I do this with one task. I can't find
any
reasson why this is happening. I hop e anyone can tell me why this is
happening.



Reply With Quote
  #3  
Old   
freterink
 
Posts: n/a

Default Re: Ownership objects after copying them with the Copy SQL-Server - 09-23-2004 , 02:59 PM



I have to transfer over a hundred of objects (tables and views). Using data
pump tasks means I have to make a task for every object (as far as I know).
That's why I use this Task.

Is the behaviour of this task meant like this or is it faulty?

"Allan Mitchell" wrote:

Quote:
I dislike this task for his very reason, i.e. it is difficult to use. I
always script things out and apply (Procs, Views etc) and transfer the data
using DataPump tasks.


"freterink" <freterink (AT) discussions (DOT) microsoft.com> wrote in message
news:9A67C60E-302F-4DEE-A8E8-BFE9B39672CE (AT) microsoft (DOT) com...
I used the Copy SQL-Server Objects Task to copy tables and views from a
production server to a reporting server. On the production database I
created
a database user i.e. ReadUser. On the Reporting database I created the
database user WriteUser. In the Task I defined the ReadUser for the Source
database connection and the WriteUser for the Destination database. I
choose
to copy all tables and views and made sure that no privileges or triggers
or
whatever would be copied along with the objects (Options in Copy tab).

The funny thing I see is that all tables get the owner dbo, but all views,
exept 2, get the owner WriteUser. I do this with one task. I can't find
any
reasson why this is happening. I hop e anyone can tell me why this is
happening.




Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Ownership objects after copying them with the Copy SQL-Server - 09-24-2004 , 08:31 AM



For tables then you can use the wizard to do the DataPump
generation

To do the views I would script them out and apply.

Quote:
-----Original Message-----
I have to transfer over a hundred of objects (tables and
views). Using data
pump tasks means I have to make a task for every object
(as far as I know).
That's why I use this Task.

Is the behaviour of this task meant like this or is it
faulty?

"Allan Mitchell" wrote:

I dislike this task for his very reason, i.e. it is
difficult to use. I
always script things out and apply (Procs, Views etc)
and transfer the data
using DataPump tasks.


"freterink" <freterink (AT) discussions (DOT) microsoft.com> wrote
in message
news:9A67C60E-302F-4DEE-A8E8-
BFE9B39672CE (AT) microsoft (DOT) com...
I used the Copy SQL-Server Objects Task to copy tables
and views from a
production server to a reporting server. On the
production database I
created
a database user i.e. ReadUser. On the Reporting
database I created the
database user WriteUser. In the Task I defined the
ReadUser for the Source
database connection and the WriteUser for the
Destination database. I
choose
to copy all tables and views and made sure that no
privileges or triggers
or
whatever would be copied along with the objects
(Options in Copy tab).

The funny thing I see is that all tables get the
owner dbo, but all views,
exept 2, get the owner WriteUser. I do this with one
task. I can't find
any
reasson why this is happening. I hop e anyone can
tell me why this is
happening.



.


Reply With Quote
  #5  
Old   
freterink
 
Posts: n/a

Default Re: Ownership objects after copying them with the Copy SQL-Server - 09-24-2004 , 08:43 AM



The copy of tables has to be done every morning at 04:00. I copy entire
tables to make sure that I receive date including new definitions. Your
solutions seems to me a manual task.

In the meantime I have created a Stored Procedure that changes the owner of
the views to dbo.

"Allan Mitchell" wrote:

Quote:
For tables then you can use the wizard to do the DataPump
generation

To do the views I would script them out and apply.

-----Original Message-----
I have to transfer over a hundred of objects (tables and
views). Using data
pump tasks means I have to make a task for every object
(as far as I know).
That's why I use this Task.

Is the behaviour of this task meant like this or is it
faulty?

"Allan Mitchell" wrote:

I dislike this task for his very reason, i.e. it is
difficult to use. I
always script things out and apply (Procs, Views etc)
and transfer the data
using DataPump tasks.


"freterink" <freterink (AT) discussions (DOT) microsoft.com> wrote
in message
news:9A67C60E-302F-4DEE-A8E8-
BFE9B39672CE (AT) microsoft (DOT) com...
I used the Copy SQL-Server Objects Task to copy tables
and views from a
production server to a reporting server. On the
production database I
created
a database user i.e. ReadUser. On the Reporting
database I created the
database user WriteUser. In the Task I defined the
ReadUser for the Source
database connection and the WriteUser for the
Destination database. I
choose
to copy all tables and views and made sure that no
privileges or triggers
or
whatever would be copied along with the objects
(Options in Copy tab).

The funny thing I see is that all tables get the
owner dbo, but all views,
exept 2, get the owner WriteUser. I do this with one
task. I can't find
any
reasson why this is happening. I hop e anyone can
tell me why this is
happening.



.



Reply With Quote
  #6  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Ownership objects after copying them with the Copy SQL-Server - 09-25-2004 , 06:15 AM



Personally if I was transferring the whole lot I would use BACKUP and
RESTORE. I would then run any post RESTORE scripts to change any details

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com


"freterink" <freterink (AT) discussions (DOT) microsoft.com> wrote

Quote:
The copy of tables has to be done every morning at 04:00. I copy entire
tables to make sure that I receive date including new definitions. Your
solutions seems to me a manual task.

In the meantime I have created a Stored Procedure that changes the owner
of
the views to dbo.

"Allan Mitchell" wrote:

For tables then you can use the wizard to do the DataPump
generation

To do the views I would script them out and apply.

-----Original Message-----
I have to transfer over a hundred of objects (tables and
views). Using data
pump tasks means I have to make a task for every object
(as far as I know).
That's why I use this Task.

Is the behaviour of this task meant like this or is it
faulty?

"Allan Mitchell" wrote:

I dislike this task for his very reason, i.e. it is
difficult to use. I
always script things out and apply (Procs, Views etc)
and transfer the data
using DataPump tasks.


"freterink" <freterink (AT) discussions (DOT) microsoft.com> wrote
in message
news:9A67C60E-302F-4DEE-A8E8-
BFE9B39672CE (AT) microsoft (DOT) com...
I used the Copy SQL-Server Objects Task to copy tables
and views from a
production server to a reporting server. On the
production database I
created
a database user i.e. ReadUser. On the Reporting
database I created the
database user WriteUser. In the Task I defined the
ReadUser for the Source
database connection and the WriteUser for the
Destination database. I
choose
to copy all tables and views and made sure that no
privileges or triggers
or
whatever would be copied along with the objects
(Options in Copy tab).

The funny thing I see is that all tables get the
owner dbo, but all views,
exept 2, get the owner WriteUser. I do this with one
task. I can't find
any
reasson why this is happening. I hop e anyone can
tell me why this is
happening.



.





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.