BUG: Replay Tool Uses LoginName Column for SETUSER Instead of DatabaseUserName Column (286239)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q286239
BUG #: 234862 (SHILOH)
SYMPTOMS
If the user id in a database is different than the login id (for example, for the database owner) any SQL Server Profiler replay that uses traces captured for that id is run in the context of system administrator (sa) instead of in the context of the username.
CAUSE
SQL Server 2000 Profiler replay always executes a SETUSER statement after the connection is established to impersonate the particular user that issued the query during the trace capture. Replay uses the LoginName column in the trace file for the SETUSER statement.
WORKAROUND
To work around this behavior, use either of the following:
- If security does not matter for the purposes of the replay, let the replay default to sa.
- When you capture a file for replay, only use ids where the login id and the user id are the same.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 2000.
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbBug kbpending KB286239 |
---|
|