[freetds] client pid

Lowden, James K LowdenJK at bernstein.com
Wed Apr 2 11:41:07 EST 2003

> From: ZIGLIO Frediano [mailto:Frediano.Ziglio at vodafoneomnitel.it]
> Sent: April 2, 2003 10:34 AM
> I discovered how to know client pid from server (mssql2k)
> select host_id()
> Why host_id ??

Sybase consistently refers to the client machine as the "host".  I suppose
they're looking at it from the application's point of view.  For example, in
master..sysprocesses "hostprocess" and "hostname" refer to the client.  

What "pid" are you seeing, btw?  Surely not the same as reported by "ps" on
the client?  It must be assigned by the server for its own purposes.  

My Win32 clients all have master..sysprocesses.hostprocess between 200 and
1600 as we speak.  My FreeTDS client's hostprocess (and host_id()) is


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above.  If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.

More information about the FreeTDS mailing list