The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

If two Windows user accounts (jsmith and mjones) were mapped to the same database user account (demo) using interactive logins, is there a way to tell them apart if both are connected? Most of what I am finding just shows demo twice.

asked 03 May '12, 15:30

Siger%20Matt's gravatar image

Siger Matt
3.1k486493
accept rate: 13%

edited 03 May '12, 15:31


Check the connection properties, OSUser should be what you're looking for:

SELECT CONNECTION_PROPERTY ( 'OSUser' );

Connection properties

permanent link

answered 03 May '12, 19:40

Tyson%20Lewis's gravatar image

Tyson Lewis
2.2k1641
accept rate: 22%

Connection Properties will show IP address of the machine each one is connected from, which might help. If they're coming from a Terminal Server, not sure how you would distinguish them.

permanent link

answered 03 May '12, 17:46

Calvin%20Allen's gravatar image

Calvin Allen
1.5k232638
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×36
×17
×1

question asked: 03 May '12, 15:30

question was seen: 1,470 times

last updated: 03 May '12, 19:40