Skip to Content.
Sympa Menu

freetds - RE: [freetds] client pid

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] client pid
  • Date: Wed, 2 Apr 2003 11:41:07 -0500

> 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
-462205.

--jkl




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.





Archive powered by MHonArc 2.6.24.

Top of Page