Stored proc running 30% slower through Java versus running directly on database

后端 未结 8 1064
逝去的感伤
逝去的感伤 2021-02-08 14:10

I\'m using Java 1.6, JTDS 1.2.2 (also just tried 1.2.4 to no avail) and SQL Server 2005 to create a CallableStatement to run a stored procedure (with no parameters). I am seein

8条回答
  •  广开言路
    2021-02-08 14:27

    I recall having a similar issue a while ago, because JTDS was silently converting a string parameter to Unicode or something similar. As a result of that conversion, SQL Server was unable to use the index which is was using when we ran the stored proc from SSMS.

    HIH

提交回复
热议问题