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: Friday, September 5, 2014 9:51 AM
Points: 295, Visits: 1,253
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: Thursday, September 18, 2014 9:28 AM
Points: 19, Visits: 475
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: Friday, September 19, 2014 5:51 PM
Points: 3,148, Visits: 5,976
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