SQL 2000 equivalent script for this SQL 2005 script

  • Anyone have a trick up their sleeve that simulates this SQL 2005 only script on SQL 2000?

    USE [master]

    GO

    CREATE LOGIN [DOMAIN\Account] FROM WINDOWS WITH DEFAULT_DATABASE=[master]

    GO

    DENY CONNECT SQL TO [DOMAIN\Account]

    GO

    This specific account is part of an AD group that has permissions to the database, but I want to specifically deny access to this one account and this is the easiest (and most straightforward, imho) way to take care of this special case.

    Any and all suggestions are welcome.

    Thanks,

    John

  • try sp_revokelogin or sp_denylogin to prevent members of a group or account from logging in.



    Shamless self promotion - read my blog http://sirsql.net

  • sp_denylogin did the trick. I've been trying revoke, but that just removes the account entirely from the server. Thanks!

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

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