Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6

    Unanswered: is there a C# equivalent to sysem_user?

    is there a C# equivalent to system_user?

    I asked my dev team but they all work from home on Fridays (read sleeping on their couches), and I have not heard back yet.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Maybe I missed a meeting, but can't you just use an ADO Command object to
    Code:
    SELECT system_user
    ...and call it good?

    -PatP

  3. #3
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    no sql server on this project.

    I am doing the backend processing in C#, XML and something called Aspenwatch which smells like a big gui for Oracle.

    I just found the WindowsIdentity class.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  4. #4
    Join Date
    May 2004
    Location
    Seattle
    Posts
    1,313
    if you want the name of the currently logged in windows user, see:

    http://msdn2.microsoft.com/en-us/lib....username.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •