SQL Server 2005 security issue is related to logins

  • Will the below code run in sql server 2005 and 2008 ?

    Issue with SQL Server 2008, and future products is known. The fix is to run:

    CREATE LOGIN [BUILTIN\Administrators] FROM WINDOWS

    go

    sp_addsrvrolemember

    @LogiName=''BUILTIN\Administrators'',

    @RoleName=''sysadmin''

    The important point being that cannot add a "group" to a server role directly. You have to add a "login" for that "group". Then you can add that "login":

    thnx....reply

  • the code will work and

    yes a group has to be created as a login and then necessary role has to be provided hope these are basic.

    Regards
    Durai Nagarajan

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

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