p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2005 General discussion of SQL Server *2005* version only.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 19th, 2008, 06:40 AM
Authorized User
Points: 49, Level: 1
Points: 49, Level: 1 Points: 49, Level: 1 Points: 49, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: pune, Mah, India.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Roles

what is role in sqlserver 2005? how to use role in sql server & benifit of the roles?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old January 19th, 2008, 12:10 PM
planoie's Avatar
Friend of Wrox
Points: 16,368, Level: 55
Points: 16,368, Level: 55 Points: 16,368, Level: 55 Points: 16,368, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Just like in any other user/role based system, you can assign users to roles and rights to the roles so that you don't have to assign specific rights to individual users.

For example, there is a role in sql server called "data_reader". That role has rights to read data from objects in the database. Instead of assigning each user read rights to individuals tables you could make them a member of the "data_reader" role. If you need to restrict a user's rights to specific objects (sprocs, tables, views) then you may need to remove them from a role with more rights and assign them very specific rights.

I have found in my work building database based applications that I don't do much specific permission management because the application abstracts the access to the database and controls what a user can or can't do. For example, a management section of a web site is only accessible to users in the application's "management" role (app role control, not sql server role control). So the web application accesses the database with a single database user which requires rights to everything used by the application.

Database security is a very broad subject. There are many books available on it and much online as well. I'd recommend doing some searching and reading online to get an idea of where you need to start.

-Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
roles and management MunishBhatia ASP.NET 2.0 Professional 2 November 3rd, 2007 02:01 AM
RoleGroups and Roles durban ASP.NET 2.0 Basics 3 September 19th, 2007 02:24 PM
Sitemapnode and roles luca ASP.NET 2.0 Basics 0 September 12th, 2007 12:30 PM
Roles jackandjo BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 October 17th, 2006 04:12 AM
Roles Permissions Many to Many ... Why? seanmayhew BOOK: ASP.NET Website Programming Problem-Design-Solution 2 November 5th, 2004 10:51 AM



All times are GMT -4. The time now is 08:32 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc