turn off sp_executesql

  • Our database has just moved servers and I noticed that via SQl profiler the application's SQL is now enclosed in sp_executesql. How can I stop this?

    Many thanks

  • Wild guess: it's a Java application, isn't it?

    If so, there are connection properties that handle how the statements are submitted to the RDBMS.

    If not... can you share more details please?

    -- Gianluca Sartori

  • Yes its!!! coming through a jboss layer

  • Edward-445599 (8/31/2011)


    Yes its!!! coming through a jboss layer

    😀

    OK, what's the jdbc driver? JTDS or Microsoft's?

    -- Gianluca Sartori

  • Gianluca Sartori (8/31/2011)


    Edward-445599 (8/31/2011)


    Yes its!!! coming through a jboss layer

    😀

    OK, what's the jdbc driver? JTDS or Microsoft's?

    ITS JDBC . many thanks

  • Edward-445599 (8/31/2011)


    Gianluca Sartori (8/31/2011)


    Edward-445599 (8/31/2011)


    Yes its!!! coming through a jboss layer

    😀

    OK, what's the jdbc driver? JTDS or Microsoft's?

    ITS JDBC . many thanks

    OK, which driver?

    -- Gianluca Sartori

  • sorry jtds

  • See http://jtds.sourceforge.net/faq.html.

    The property to set in the connection string is "prepareSQL". To leave the original SQL untouched, you can set it to 0.

    -- Gianluca Sartori

  • Did Gianluca´s tip help you solve your issue?

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply