Re: Anyone can access my Sql Server!

From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 09/17/04

  • Next message: Hugo Kornelis: "Re: IDENTITY INSERT Permission"
    Date: Thu, 16 Sep 2004 20:53:03 -0500
    
    

    A Windows account needs to be granted access to SQL Server before a database
    can be accessed. If a user can connect to SQL Server via an ODBC DSN using
    a trusted connection, then that account must have been granted access,
    either directly or through membership of a Windows group.

    You can determine the permission path with xp_logininfo. For example:

        EXEC master..xp_logininfo 'MyDomain\MyUser'

    -- 
    Hope this helps.
    Dan Guzman
    SQL Server MVP
    "ian" <anonymous@discussions.microsoft.com> wrote in message 
    news:0f1501c49c25$940e61b0$a301280a@phx.gbl...
    >I have Sql Server running an a SBS2003 box. I want to
    > provide access to a couple of users via the internet.
    >
    > At first they couldn't connect because the Authentication
    > was set to Windows Only. I have changed it to Sql Server
    > and Windows, and now they can successfully create a DSN
    > using their credentials.
    >
    > What I also have found to my horror is that using NT
    > authentication, a DSN can be created from anywhere
    > regardless of the Login ID. When a DSN has been created in
    > this manner, data can be changed.
    >
    > My database is wide open - Help! 
    

  • Next message: Hugo Kornelis: "Re: IDENTITY INSERT Permission"

    Relevant Pages

    • RE: RefreshLink error - 3078
      ... this was tested on Windows XP w/ SP2 installed. ... because the DSN is incorrectly configured/installed. ... and it sure enough had showed the data I had in my SQL server ... Microsoft Online Partner Support ...
      (microsoft.public.access.conversion)
    • Re: Help with this question
      ... Steve ... > Finance\Sales Windows NT groups. ... > been granted any access to SQl Server to any db. ... > server and the Finance\Manager group has been granted access to ...
      (microsoft.public.sqlserver.security)
    • Help on this please!
      ... Finance\Sales Windows NT groups. ... granted any access to SQl Server to any db. ... Finance\Manager group has been granted access to Regions db. ...
      (microsoft.public.sqlserver)
    • Help with this question
      ... Finance\Sales Windows NT groups. ... been granted any access to SQl Server to any db. ... server and the Finance\Manager group has been granted access to ...
      (microsoft.public.sqlserver.security)
    • Anyone can access my Sql Server!
      ... I have Sql Server running an a SBS2003 box. ... At first they couldn't connect because the Authentication ... and Windows, and now they can successfully create a DSN ...
      (microsoft.public.sqlserver.security)