How Block specific User to access SQL Server

Last post 04-22-2008 5:10 AM by satya. 6 replies.
Page 1 of 1 (7 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 04-15-2008 8:51 AM

    How Block specific User to access SQL Server

     Hi All

    I want to restrict specific users from access SQL Server either block IP address OR disconnect users if using a specific IP address..... 

    Thanks in Advance

    sonny
     

  • 04-15-2008 12:21 PM In reply to

    Re: How Block specific User to access SQL Server

    Hi

    Use sp_droplogin will drop current login to use sqlserver

    you can find more help on BOL

     

    Thanks

  • 04-17-2008 8:31 AM In reply to

    Re: How Block specific User to access SQL Server

     Thanks .. but I do not want to drop the login as other user using this logins....

  • 04-18-2008 3:02 AM In reply to

    Re: How Block specific User to access SQL Server

    Hi,

    You can have a list of IP address stored in some table and while users are connecting via application you can check the IP address against value stored in the IP Address table along with userid and password to restrict it or you can setup a firewall rule to restrict particular IP address.

    hth         

    Hemantgiri S. Goswami | MS SQL Server MVP
    -------------------------
    "Humans don't have Caliber to PASS TIME , Time it self Pass or Fail Humans" - by Hemantgiri S. Goswami

    http://hemantgirisgoswami.blogspot.com
    http://forums.surat-user-group.org/

    View Hemantgiri S. Goswami's profile on LinkedIn

    Disclaimer: This post is provided as is, for the sake of knowledge sharing only.
  • 04-18-2008 8:29 AM In reply to

    Re: How Block specific User to access SQL Server

    Interesting question. You can run sp_revokedbaccess, which drops a user from a database, but there is no sp_denydbaccess which would prevent a user from being granted access through other permissions.

    I guess the only way is to be very strict about which logins and groups are given dbaccess.

  • 04-22-2008 4:59 AM In reply to

    Re: How Block specific User to access SQL Server

    Thanks Guys... But It is pity though no interface to implement such security measures. I think that an interface must include in future version of SQL Server where DBA can able to restrict the users via IP addresses and visible only to sysadmin.  However, if any other way please share it...

     Thanks again...

    sonny
     

  • 04-22-2008 5:10 AM In reply to

    • satya
    • Top 10 Contributor
    • Joined on 11-05-2002
    • United Kingdom
    • Posts 22,567
    • Microsoft MVP
      Moderator

    Re: How Block specific User to access SQL Server

    Yes, such an option is not availabel on SQL Server side and rather you have to control such IP Address restriction from FIREWALL & network related APIs.

    -Satya S K J

    SQL Server MVP



    Knowledge is Power, you will gain by sharing it. SSQA.net - Invisible contributions to the users & visible success in SQL Community.
Page 1 of 1 (7 items)
Active Topics   My Discussions    Unanswered Posts


© 2000 - 2007 vDerivatives Limited All Rights Reserved.