Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-09-14
3
Medium Priority
?
316 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
  • 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
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.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

916 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