Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Give user read only access to all databases current and future ? Expand / Collapse
Author
Message
Posted Thursday, November 14, 2013 9:26 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, December 11, 2014 6:21 AM
Points: 295, Visits: 1,256
Is there a way to give a user read only access to all databases current and future, without having to add them in for each individual database ?
Post #1514355
Posted Thursday, November 14, 2013 10:05 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, December 8, 2014 12:12 PM
Points: 19, Visits: 513
for new databases, you can create a server side DDL trigger that tracks CREATE_DATABASE event and in there just execute 'create user' for your DB,. more info :

http://technet.microsoft.com/en-us/library/ms186406.aspx
Post #1514374
Posted Friday, November 15, 2013 7:05 PM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 2:16 PM
Points: 3,230, Visits: 6,103
for 'future' databases-create a user in a Model DB and every time you create a new database, that user will be there.


Post #1514882
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse