Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008

    Unanswered: how to find client's hostname using RDP from MSSQL command.

    Can anyone help, how to find client's hostname using RDP from MSSQL command.
    In simple words,
    I am connecting to Remote desktop and using MSSQL server management studio in the remote desktop. And when I run select host_name(), it returns the RDP machine name. However, I wish to see my own computer name.
    Thanks in advance.

  2. #2
    Join Date
    Nov 2004
    on the wrong server
    Provided Answers: 6
    well that is not going to work because you are not the user. How are you connecting to sql server? windows auth or sql auth? if the former you might want to look at system_user. That will give you your network username, but as nfor the machine name that is launching remote desktop, I can not think of anyway to do that.
    “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.

  3. #3
    Join Date
    Feb 2004
    One Flump in One Place
    Does RDP write a log file of connections? Or would that be on the client anyway?
    pootle flump
    ur codings are working excelent.

  4. #4
    Join Date
    Feb 2004
    In front of the computer
    Provided Answers: 54
    You can set the hostname value to whatever you like when you initiate a SQL connection. Nothing says that the hostname has to contain anything special, so you can make it anything that suits you.


Posting Permissions

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