Login with other Window ID

Last post 09-01-2008 2:47 PM by satya. 6 replies.
Page 1 of 1 (7 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 08-27-2008 10:32 AM

    Login with other Window ID

     

    Hi...

     I need to check whether garnted user have permissions..

    For example i granted Some read acces to XXX on particular database.

    Now i want to login to Query Analyer with XXX login and check the access.

    For this is it that i need Login XXX password ?.Here XXX login is Windows login and my server is 2000.

    I can check this using sp_help logins 'XXX'.But this is faiing on 2000 server.

     

     

     

  • 08-27-2008 11:37 AM In reply to

    Re: Login with other Window ID

    Hi ,

    Iam assuming you have granted access to windows domain user read access to database and it would be security issue to ask or get the users passwords.

    Best would be open the enterprise manager -->Security--> Check user has been given dbread permission in his properties and then ask user to check from his box with ODBC test to server or use query analyzer.

    Also make sure the SQL engine has mixed mode turned on. 

     

    I would not encourge sharing the user domain password.

    -Sat 

     

    Success depends on options you explored !!!
  • 08-28-2008 1:16 AM In reply to

    Re: Login with other Window ID

    Hi ,

     

    I will usually follow this , check the access by impersonating the user using 'SETUSER <<username>>' then try to do the operations and see it working.

    Cheers,
    Prabhakar
  • 08-28-2008 3:05 AM In reply to

    Re: Login with other Window ID

     That was nice suggestion prabakar.

    I was not aware of it , learnt something new here.

    Thx

    Sat 


     

     

    Success depends on options you explored !!!
  • 08-28-2008 12:20 PM In reply to

    Re: Login with other Window ID

    I tried this..

    But when i user select user

    i see o\p  as dbo but thsi is not the user i setted..

  • 09-01-2008 11:20 AM In reply to

    Re: Login with other Window ID

    It should work, Have you tried correctly, Here is the example

    setuser 'dbw' -----Where dbw is the username

    Select user_name() --- This will display as dbw

    Cheers,
    Prabhakar
  • 09-01-2008 2:47 PM In reply to

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

    Re: Login with other Window ID

    If that user XXX is a windows login and as per the authentication (Windows or Mixed) SQL will check with domain and then access on SQL Server side, that should allow access as per the permissions & access privileges.

    Just copying what is referred in BOL:

    Windows Authentication

    When Windows Authentication is used to connect to SQL Server, Microsoft Windows is completely responsible for authenticating the client. In this case, the client is identified by its Windows user account. With SQL Server Compact Edition replication or remote data access (RDA), the SQL Server Compact Edition Server Agent acts as the database client, running under the identity of a Windows user account:

    • When IIS is configured to use Anonymous access, the SQL Server Compact Edition Server Agent runs under the identity of the Internet Guest Account. By default, this is IUSR_computername. If you configure another Windows user account as the IIS anonymous user account, the SQL Server Compact Edition Server Agent runs under the identity of that account.

    • When IIS is configured to use Basic authentication, the SQL Server Compact Edition Server Agent runs under the identity of the Windows user account for which the client supplied the Internet user name and password.

    • When IIS is configured to use Integrated Windows Authentication, the SQL Server Compact Edition Server Agent runs under the identity of the client.

    SQL Server Authentication

    When SQL Server Authentication is used, SQL Server authenticates the client by comparing the client-supplied user name and password to the list of valid user names and passwords maintained within SQL Server. In this case, the application must supply the appropriate SQL Server logon and password when connecting to SQL Server using replication or remote data access. The SQL Server Compact Edition Client Agent conveys the logon and password to the SQL Server Compact Edition Server Agent. The SQL Server Compact Edition Server Agent invokes SQL Server by using the logon and password specified by the client.

    -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.