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


To create login in many servers.


To create login in many servers.

Author
Message
Saravanan T
Saravanan T
Say Hey Kid
Say Hey Kid (710 reputation)Say Hey Kid (710 reputation)Say Hey Kid (710 reputation)Say Hey Kid (710 reputation)Say Hey Kid (710 reputation)Say Hey Kid (710 reputation)Say Hey Kid (710 reputation)Say Hey Kid (710 reputation)

Group: General Forum Members
Points: 710 Visits: 801
Hi,
Its an interview question.How to create a login in 500 servers at one shot????

Regards,
Saravanan
Steve Jones
Steve Jones
SSC Guru
SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)

Group: Administrators
Points: 104515 Visits: 19328
Just saw this, and didn't want to leave it unanswered.

If you are on 2005, and can't use PoSh, I'd actually script this with SQLCMD and use VBScript to call SQLCMD with a list of users and servers.

In PoSh, similar concept. You'll connect to each instance, hopefully with a list of servers, and then run execute the create method on each.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Eirikur Eiriksson
Eirikur Eiriksson
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27816 Visits: 19176
Quick trick, in SSMS press CTRL+ALT+G to view Registered Servers, if they are grouped you can right click on the group, new query and that instance of the query will be executed on all servers in that group.
Cool
Ed Wagner
Ed Wagner
One Orange Chip
One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)

Group: General Forum Members
Points: 28075 Visits: 10588
Eirikur Eiriksson (4/24/2015)
Quick trick, in SSMS press CTRL+ALT+G to view Registered Servers, if they are grouped you can right click on the group, new query and that instance of the query will be executed on all servers in that group.
Cool

Eirikur, I can't tell you how many times I've told people about the running SQL against multiple servers using the group. They're always so surprised and can't believe it's that easy.


Tally Tables - Performance Personified
String Splitting with True Performance
Best practices on how to ask questions
Eirikur Eiriksson
Eirikur Eiriksson
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27816 Visits: 19176
Ed Wagner (4/25/2015)
Eirikur Eiriksson (4/24/2015)
Quick trick, in SSMS press CTRL+ALT+G to view Registered Servers, if they are grouped you can right click on the group, new query and that instance of the query will be executed on all servers in that group.
Cool

Eirikur, I can't tell you how many times I've told people about the running SQL against multiple servers using the group. They're always so surprised and can't believe it's that easy.


I know Ed, such useful things as standardizing colour coding for groups, having DAC groups, importing and exporting groups as .regsrvr etc. just don't seems to get through to them.
Cool

Maybe you should do a little write up on this, that would be useful!;-)
Steve Jones
Steve Jones
SSC Guru
SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)

Group: Administrators
Points: 104515 Visits: 19328
Eirikur Eiriksson (4/24/2015)
Quick trick, in SSMS press CTRL+ALT+G to view Registered Servers, if they are grouped you can right click on the group, new query and that instance of the query will be executed on all servers in that group.
Cool


I've known that, though I'd use Red Gate's MultiScript to do it. In this case, I wanted one machine for testing, but that would work for multiple instances.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
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