Solved

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

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

     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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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