java - Spring JdbcTemplate Prepared Statements with SQL Server 2012 -


i'm trying use prepared statements jdbc template , sql server 2012. used execute statement:

jdbctemplate.query(preparedstatementcreator psc, preparedstatementsetter pss, resultsetextractor rse); 

from java part, ok. query executed, , need, issue database performance. when fire tracing, can see statement being prepared, executed, unprepared! i'm not sure why. than, whole point of prepared statements lost, since query execution plan being erased cache, , has prepared again next usage.

please, have idea why sql server unprepareing statements, , how prevent happening?

thanks in advance!


Comments

Popular posts from this blog

git - Initial Commit: "fatal: could not create leading directories of ..." -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -