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. Database & SysAdmin
  3. Database
  4. Database Design Issue

Database Design Issue

Scheduled Pinned Locked Moved Database
questioncsharpasp-netdatabasedesign
5 Posts 5 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
    Mostafa Siraj
    wrote on last edited by
    #1

    I'm building a web application which has lots of users, each with lots of security rules. what is better??? 1- to make a table for users and another table for permissions. and insure by coding(in ASP.NET for example) the security 2- to create for each user in the system new user in the DBMS itself and assign the security from the database. Thanks in Advance

    V C A P 4 Replies Last reply
    0
    • M Mostafa Siraj

      I'm building a web application which has lots of users, each with lots of security rules. what is better??? 1- to make a table for users and another table for permissions. and insure by coding(in ASP.NET for example) the security 2- to create for each user in the system new user in the DBMS itself and assign the security from the database. Thanks in Advance

      V Offline
      V Offline
      vimal_yet
      wrote on last edited by
      #2

      First one is better,because the users are specific to your application not your DB. if u create a user in db even when ur Application is Down . hte users can access the DB directly and update the DB. use the Design which is specific to ur application.

      If U Get Errors U Will Learn If U Don't Get Errors U Have Learnt

      1 Reply Last reply
      0
      • M Mostafa Siraj

        I'm building a web application which has lots of users, each with lots of security rules. what is better??? 1- to make a table for users and another table for permissions. and insure by coding(in ASP.NET for example) the security 2- to create for each user in the system new user in the DBMS itself and assign the security from the database. Thanks in Advance

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        Mostafa Siraj wrote:

        I'm building a web application which has lots of users, each with lots of security rules. what is better??? 1- to make a table for users and another table for permissions. and insure by coding(in ASP.NET for example) the security 2- to create for each user in the system new user in the DBMS itself and assign the security from the database.

        Number 2 is a bad idea because every time you create a user from your ASP.NET application you will have to supply the database with sufficient permission to perform that action. If your application is attacked, do you really want the attacker to have the ability to create users in the database? Number 2 is also a bad idea from a performance perspective. It means you won't be able to take advantage of the pooling of connections in your ASP.NET application as each user will be using a different connection. If they all use the ASP.NET user connection then you get the advantages of connection pooling. So, by a process of elimination the answer seems to be #1. However, you can implement some of this in SQL Server by using Stored procedures and passing in a user ID and constraining the data returned based also on the user.

        Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Follow up on hiring a software developer * Aarrgghh!! Accidentally pressing the Caps Lock key My website | blog

        1 Reply Last reply
        0
        • M Mostafa Siraj

          I'm building a web application which has lots of users, each with lots of security rules. what is better??? 1- to make a table for users and another table for permissions. and insure by coding(in ASP.NET for example) the security 2- to create for each user in the system new user in the DBMS itself and assign the security from the database. Thanks in Advance

          A Offline
          A Offline
          Adeel Chaudhry
          wrote on last edited by
          #4

          Hello, Why dont you try ASP.NET security? Nice website for some ideas: http://weblogs.asp.net/scottgu/archive/2006/02/24/ASP.NET-2.0-Membership_2C00_-Roles_2C00_-Forms-Authentication_2C00_-and-Security-Resources-.aspx[^] Regards, Adeel

          Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.

          1 Reply Last reply
          0
          • M Mostafa Siraj

            I'm building a web application which has lots of users, each with lots of security rules. what is better??? 1- to make a table for users and another table for permissions. and insure by coding(in ASP.NET for example) the security 2- to create for each user in the system new user in the DBMS itself and assign the security from the database. Thanks in Advance

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #5

            The first is better. Easier to maintain and look at the reason Colin said for #2 in his reply.

            "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

            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