troubleshooting Question

Microsoft JDBC driver behavour with Prepared Statments

Avatar of jaLouden
jaLoudenFlag for Australia asked on
Microsoft SQL ServerJavaJava App Servers
4 Comments1 Solution984 ViewsLast Modified:
Hi All,

We have noticed a strange behavior with an application that uses the Microsoft JDBC 4.0 driver, we are unsure if its the application or the driver. This application makes use of the sp_prepexec function for all of the queries. What we are seeing is the application passes the sp_prepexec through to sql, sql executes & returns the results then we se a sp_unprepare almost right away. Annoying we see the exact same query come in a millisecond late and it goes through the same prep and de-prep process every time.

We where wondering if it is the driver that is issuing the de-prep statment, or would that have to be initiated from the application? While vendor is suggesting that it is not their application doing this, I have my doubts due to the half hearted response.
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros