Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. DBOwner Privileges

DBOwner Privileges

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasecomquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mike Puddephat
    wrote on last edited by
    #1

    Hi, Whenever I have created data driven ASP.NET applications in the past, I have always specified in my connection string that ASP.NET should use a database user account that has dbowner privileges. Is it OK to do this, or should I restrict privileges? Most documentation I have found seems to indicate that dbowner is OK. Any opinions gratefully received. Thanks! Visit Riverside Internet[^] Visit Mike Puddephat Online[^]

    J 1 Reply Last reply
    0
    • M Mike Puddephat

      Hi, Whenever I have created data driven ASP.NET applications in the past, I have always specified in my connection string that ASP.NET should use a database user account that has dbowner privileges. Is it OK to do this, or should I restrict privileges? Most documentation I have found seems to indicate that dbowner is OK. Any opinions gratefully received. Thanks! Visit Riverside Internet[^] Visit Mike Puddephat Online[^]

      J Offline
      J Offline
      Jesse Squire
      wrote on last edited by
      #2

      Hi Mike, In my opinion, just like any other security area, it is better to use an account with the least amount of privilege. By using an account with dbo privileges, any compromise of security, such as a SQL injection attack, can wreak havoc in the database. For example, the account can drop tables, modify stored procedures, etc. If instead you use an account with only db_datareader permissions and grant execute rights on your stored procedures, there is far less that can be done in the event security is compromised. Google has a slew of resources, and here are a couple to get you started:

      • Implementing Security[^], from the SQL Server 2000 Resource Kit
      • Overview of the SQL Server Security Model and Security Best Practices[^], from SQL-Server-Performance.com
      • SQL Server Security: The db_executor Role[^], at SQL Server Central
      • Securing SQL Server Tables[^], at Windows IT Pro

      Hope that helps. :) --Jesse

      M 1 Reply Last reply
      0
      • J Jesse Squire

        Hi Mike, In my opinion, just like any other security area, it is better to use an account with the least amount of privilege. By using an account with dbo privileges, any compromise of security, such as a SQL injection attack, can wreak havoc in the database. For example, the account can drop tables, modify stored procedures, etc. If instead you use an account with only db_datareader permissions and grant execute rights on your stored procedures, there is far less that can be done in the event security is compromised. Google has a slew of resources, and here are a couple to get you started:

        • Implementing Security[^], from the SQL Server 2000 Resource Kit
        • Overview of the SQL Server Security Model and Security Best Practices[^], from SQL-Server-Performance.com
        • SQL Server Security: The db_executor Role[^], at SQL Server Central
        • Securing SQL Server Tables[^], at Windows IT Pro

        Hope that helps. :) --Jesse

        M Offline
        M Offline
        Mike Puddephat
        wrote on last edited by
        #3

        That's a great help. Thanks! Visit Riverside Internet[^] Visit Mike Puddephat Online[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups