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


Is there a way of copying the securables definitions from 1 db to another?


Is there a way of copying the securables definitions from 1 db to another?

Author
Message
Rod
Rod
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15778 Visits: 2370
We're finally moving to SQL 2012 from SQL 2005. Is there a way of automating the moving or copying of securables from the old database for some of the users, to the new database for the same users? If so, how is that done?

Kindest Regards,Rod
Connect with me on LinkedIn.
lkennedy76
lkennedy76
SSCrazy Eights
SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)

Group: General Forum Members
Points: 8501 Visits: 945
No. What procedures are you taking to move over your databases from 05 to 12? Backup and restore I hope!

MCSA SQL Server 2012
Mike Hinds
Mike Hinds
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2370 Visits: 1159
Rod at work (9/5/2013)
We're finally moving to SQL 2012 from SQL 2005. Is there a way of automating the moving or copying of securables from the old database for some of the users, to the new database for the same users? If so, how is that done?


As "I.T.D." said, backup old DBs, then restore them to new server instance. If the server logins that relate to the DB Users exist on the destination when the restore takes place, the securables will align with those logins. Otherwise they will be orphaned. When the appropriate logins are added after the restore, they can be quickly fixed by use of
sp_Change_Users_Login 'Auto_Fix', 'UserName'

Mike Hinds
Senior Database Administrator
1st Source Bank
MCP, MCTS
lkennedy76
lkennedy76
SSCrazy Eights
SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)

Group: General Forum Members
Points: 8501 Visits: 945
Rod, did you understand what Mike is saying? Please PM me if you need more explaination. :-)

MCSA SQL Server 2012
Rod
Rod
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15778 Visits: 2370
Hi Mike and It's The Database,

Your reply, Mike, made me realize that I left out some important details. Our current SQL 2005 database is on a server on-premise. The new SQL 2012 database will be on a VM, on a server hosted by our parent company. So the hardware aspect of our operation is moving off site. I'm pretty sure that those users and accounts will at least change names, on the new machine/VM.

Kindest Regards,Rod
Connect with me on LinkedIn.
lkennedy76
lkennedy76
SSCrazy Eights
SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)

Group: General Forum Members
Points: 8501 Visits: 945
Rod,

you can one of two things here.

a) create the current users under security and once you restore they will sync up.

b) new site new names, no worries, restore the database, delete the old users from the database then add the new user names in security.

pretty simple

MCSA SQL Server 2012
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