creating separate user for each database

  • Anyone have any tips on how i would create a separate user for each database im running? I have around 15 databases in my SQL Server 2005. I want each user to have access to it's specific database, not one of the others. I also want the user to only be able to run:

    SELECT

    INSERT

    UPDATE

    ALTER

    and also sp_server_info.

    Anyone have any recommendations or script to perform this?

  • The following links will point you in the right direction:

    CREATE LOGIN (Transact-SQL)

    CREATE USER (Transact-SQL)

    GRANT (Transact-SQL)

    The links point to documentation for SQL Server 2008 R2, but the syntax for the tasks you need to perform is the same for SQL Server 2005.

    Chris

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply