right i can run a query to get it, I'm really asking if getSpid() or getProcessId() or getConnectionID() is built into the jdbc api somewhere.
it should be!
Main Topics
Browse All TopicsHello,
We are using sql server 2005 to do some db work, the java application is connecting to it via the open source jtds driver. I'm logging out the procedure calls and params, I'd also like to get the value of @@SPID (connection ID) in there as well. But google is not turning up anything, and I don't see it anywhere. We are also using spring's JdbcTemplate and StoredProcedure class if that helps any.
So is this possible to get the server connection ID from jdbc land, and if so how? If not, why not?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: objectsPosted on 2009-04-22 at 14:55:01ID: 24210105
you need to get value from the result set
m/egs/java .sql/GetRs Data.html
http://www.exampledepot.co