SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS CopyObjectLevelPermissions broken?


SSIS CopyObjectLevelPermissions broken?

Author
Message
dphlps
dphlps
SSC-Enthusiastic
SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)

Group: General Forum Members
Points: 161 Visits: 354
I have scoured the internet but cannot find a definitive answer. I need to copy the users/roles and object level permissions from database A to database B. Both databases are on the same SQL Server 2014 instance.
I am using SQL Server Data Tools for Visual Studio 2013. I dropped the "Transfer SQL Server Objects Task" component on to the Control Flow and changed the properties under Security for CopyDatabaseUsers, CopyDatabaseRoles and CopyObjectLevelPermissions to True.



After executing the task, the users and roles are copied as expected however none of the object level permissions were copied.

I found a link to this connect item from 2011:
https://connect.microsoft.com/SQLServer/feedback/details/676875/transfer-sql-server-objects-task-database-role-membership

This issue was reported and Microsoft acknowledged the issue and stated it would not be fixed in that version. Since several SQL versions have been released since 2011 I'd like to know if this feature is still officially broken.
Does anyone know of a current status from Microsoft? If this is still a bug, is there an open connect item or should I create a new one?

I appreciate any new information you may have.
Lowell
Lowell
SSC Guru
SSC Guru (295K reputation)SSC Guru (295K reputation)SSC Guru (295K reputation)SSC Guru (295K reputation)SSC Guru (295K reputation)SSC Guru (295K reputation)SSC Guru (295K reputation)SSC Guru (295K reputation)

Group: General Forum Members
Points: 295461 Visits: 42122
things like logins and user permissions i kind of prefer to do via TSQL instead of a black box tool that is scripting via SMO.

I like Perry Whittle's script found @
http://www.sqlservercentral.com/Forums/Topic1560182-1550-1.aspx, i've grabbed it and modified a version for my own tastes in scripts, but it is really comprehensive.

Lowell
--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
dphlps
dphlps
SSC-Enthusiastic
SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)

Group: General Forum Members
Points: 161 Visits: 354
Thanks Lowell. I've been experimenting with some scripts. I'll check that one out as well. My challenge is to automate moving permissions from database A to database B. A simple black box is acceptable in this case but I can make a slightly more complicated scripting process work too. Thanks for the quick response.
tim.ffitch
tim.ffitch
SSC Veteran
SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)

Group: General Forum Members
Points: 264 Visits: 110
I believe it does work but only for the objects you have chosen to script, which is a shame as it would be really useful to have the permissions without having to script the objects as well.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search