|
Hello, I need to add one user to different 30 databases on the same instance.Is there any way to do it in less time then to add it manually one by one. there is some command "force all users"...ect,can you please let me know the exact command if you are aware. thank you rgds,
(comments are locked)
|
|
Using SSMS you can quickly check all the tick-boxes for the databases that the login requires. This is on the "Login Properties" page, "User Mapping" section. Does this give you what you need or do you need to set more specifics about the users? thanks,do you mean Server- Security-Logins-user name-login properties-user mapping and tick the db for which the access needs to be given?
Aug 30 '11 at 05:28 AM
pits
yes - that's the one
Aug 30 '11 at 05:29 AM
Kev Riley ♦♦
thanks Kev, is there any command "force all users"...ect you aware of?
Aug 30 '11 at 05:42 AM
pits
no - but if it was all the user databases on the instance, then a solution like @WilliamD is suggesting would work
Aug 30 '11 at 05:59 AM
Kev Riley ♦♦
(comments are locked)
|
|
Something like this may also work for you (try it out, it will print the commands that would be run): If this fits, you can uncomment the
(comments are locked)
|

