Solved

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

Posted on 2010-09-14
3
305 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 29

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 29

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now