Solved

Is there any way to "clone" a SQL user account?

Posted on 2010-09-14
3
312 Views
Last Modified: 2012-05-10
Hello,

I have multiple SQL accounts I need to configure exactly the same.  If I do them one at a time, I have to go through multiple places to setup the security and user roles, schemas etc.  Is there any way to clone a user?

The only thing that would be different for each user is their default schema, password and username.

SQL 2008 x64

Thanks!
0
Comment
Question by:caw01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 33675429
If it were me, I'd script the first one with CREATE LOGIN, GRANT, etc...
I suspect because that facility is available, there hasn't been created a way in the GUI to clone a user.
0
 

Author Comment

by:caw01
ID: 33676147
Alright...  Not a SQL guy so I will have to figure that one out...  Unless someone can help me write a script.  
0
 
LVL 30

Accepted Solution

by:
Rich Weissler earned 500 total points
ID: 33676223
If I remember the interface for SQL 2008 Management Studio, there is script button in the upper left corner of the create logon window that might help get you started... it'll at least show you what commands it is using the create your user.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question