Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

processId is set to 123 when it should be the real process id #7

Open
abma opened this issue Jan 17, 2017 · 1 comment
Open

processId is set to 123 when it should be the real process id #7

abma opened this issue Jan 17, 2017 · 1 comment

Comments

@abma
Copy link

abma commented Jan 17, 2017

jTDS seems to report the wrong process id to the mssql server when connecting via tcp/ip. It seems to always report "123" when it should report the real process id.

not sure how to solve, a quick search leads to

http://stackoverflow.com/questions/35842/how-can-a-java-program-get-its-own-process-id

to reproduce, let jTDS connect to mssql and then use this query:

SELECT hostprocess FROM sys.sysprocesses WHERE dbid > 0 hostprocess='123'

@derjust
Copy link

derjust commented May 17, 2018

This happens because of the hard coded value here used here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants