How to get user name

Results 1 to 2 of 2

Thread: How to get user name

  1. #1
    Ali Guest

    Default How to get user name

    I need to get the user name from an ASP intranet app (using SQL Server). What&#039s the easiest way to do this? I know how to get the MS Exchange name, but would rather grab it from SQL Server or other. Thanks in advance - Ali

  2. #2
    Pete Nelson Guest

    Default RE: How to get user name

    I believe in ASP you can get it from Request.ServerVariables("LOGON_USER").<BR><BR>In SQL 7, you can do "select system_user" to return the name of the user logged into SQL. Might be different than their NT user name if they&#039re not using NT security to log into SQL.<BR><BR><BR><BR>

Posting Permissions

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