Re: Impersonating a domain user for debugging purposes
From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 06/22/04
- Next message: Dan Guzman: "Re: Ownership Chains Not Working?"
- Previous message: Sue Hoegemeier: "Re: Ownership Chains Not Working?"
- In reply to: Raterus: "Impersonating a domain user for debugging purposes"
- Next in thread: Raterus: "Re: Impersonating a domain user for debugging purposes"
- Reply: Raterus: "Re: Impersonating a domain user for debugging purposes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 22 Jun 2004 08:13:33 -0500
As a sysadmin role member, you can execute a SETUSER command to use
different security context. For example:
SETUSER 'MyDomain\MyUser'
GO
EXEC MyProcedure
GO
You can revert back to your own security context by running SETUSER with no
parameters. See the Books Online for more information.
-- Hope this helps. Dan Guzman SQL Server MVP "Raterus" <raterus@spam.org> wrote in message news:%23uCRFd9VEHA.716@TK2MSFTNGP11.phx.gbl... Here is one big "gotcha" I always run into. Our SQL Server is based entirely off Integrated Windows Authentication. When I create SProcA and test it with my permissions, it works great. Security isn't really a question, since my account is in the Domain Admins group. Unfortunately when UserA attempts to execute SProcA, it fails for them, because they do not have the appropriate permissions. I'd like to debug these scripts at the comfort of my workstation, and not rely on the end-users interaction in this process, except for the initial error report. My problem is that since I have Domain Admin rights, everything works fine for me. It usually boils down to a simple permission somewhere, but that's hard to track when I don't have any errors I can see at my workstation.. So my question is: Is there some way I can impersonate a specific users login, in order that I can test what exactly happened on their end? I'd prefer not to have to change their password.
- Next message: Dan Guzman: "Re: Ownership Chains Not Working?"
- Previous message: Sue Hoegemeier: "Re: Ownership Chains Not Working?"
- In reply to: Raterus: "Impersonating a domain user for debugging purposes"
- Next in thread: Raterus: "Re: Impersonating a domain user for debugging purposes"
- Reply: Raterus: "Re: Impersonating a domain user for debugging purposes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|