Midnight DBA
When the kids go to sleep I stay up to make videos.

Grant DB Permissions in Powershell

September 25, 2008 07:08 by KenpoDBA

This is a beautiful bit of script that allows you to set DB permissions for a user.  This is particularly useful for adding a user to multiple DBs on the server.  And the code to accomplish this is much shorter than its T-SQL counterpart.  If you need a bit more explanation about how this is put together then look at the video for granting schema permissions with Powershell.

 Here's the vid.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: , ,
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

January 7. 2009 05:19