November 16, 2010 at 9:16 am
I have an app that connects to a SQL 2005 database with JDBC. I have added some indexed views in the database to improve performance. But inserts fail because SET QUOTED_IDENTIFIER is OFF. I would like to set that parameter ON in the app connection string but I can't find the JDBC syntax for that.
Does anyone know how to set that parm to ON in a JDBC connection string? thanks!
November 18, 2010 at 12:13 pm
in connections container there is a function called createStatement().
Use it to issue SET QUOTED_IDENTIFIER ON
November 19, 2010 at 7:37 am
Thanks for the reply. I talked to one of our developers about that. She thinks your suggestion would work in code but I was looking for something that goes in the connection string, like QuotedId=Yes in an ODBC connection string.
But it turns out the connection string idea might not work because a lot of the vendor's stored procs are coded with SET QUOTED_IDENTIFIER OFF and that is causing my problem with the indexed views. I think the stored proc setting would override the connection string setting.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy