• Vedran Kesegic (1/11/2013)


    If that are windows logins, why granting them individually? You could create windows (AD) groups, and sql login for that group.

    Managing rights will be much easier on the group level, and name changes won't affect you.

    If you want some individuals to have different rights, create another group and put them in there.

    If there would be as many groups as users (very, very unlikely), you are out of luck. You have to manage them as individual logins and in that case I would change the name of the login. That will not break internal dependencies and rights since they are based upon internal ID's (SID, sort of GUID), not the login name.

    We are working within the bounds of the application (our primary accounting software which uses a SQL Server DB for data storage) and so our choices of authentication type are limited to SQL Security only. NT Authentication will not work with the apps own proprietary security. As is common the app developers created their own security scheme instead of using what was already provided in SQL Server.

    Within the aps security mechanism each user does have a unique numeric ID that is never seen (at least not from within the app) and so changes there do not matter. Where the name change is an issue comes into play when we are trying to sync into the apps processes (via T-SQL) and capture information that the app should but does not such as data change auditing. By assigning users with logins that match their name (which is how the application admins set up users within the app) we are able to do things that even the aps maker had previously said was not realistic. Thanks to native SQL items like ORIGINAL_LOGIN we can link up process to users that the app does not naturally provide.

    If we had our users setup per the software vendors specs then every user would be connecting in as the login that owns the DB. That means that 50 users connections all come in as the same ID and it becomes impossible to determine who is doing what unless the apps native security functionality provides a way to do this and it doesn't. So while the use of names to logins via standard SQL Security is not the best choice under ideal circumstances its what we have to work with for now.

    Thanks for posting

    Kindest Regards,

    Just say No to Facebook!