The forum is currently being migrated to a new host. While the migration happens, the old server is still available. Once the new machine is ready, I will copy the database to the new machine. Feel free to ask and answer questions in the meantime.

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.2k5572101
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:

×39
×23
×1

question asked: 03 May '12, 15:30

question was seen: 2,557 times

last updated: 03 May '12, 19:40