I've got some SQL queries like this
select user_id from
table_user where lower(email_address)=? and password=?
The schema for the application was recently updated but I don't really want to update every SQL query in the application. Is there a way to specify the current Schema from the JBOSS connection end?
Old connection: jdbc:sqlserver://myserver:1433;DatabaseName=db
Tried: jdbc:sqlserver://myserver:1433;DatabaseName=db;currentSchema=abc
I tried using currentSchema
but that didn't help, I get a missing object exception when I run the queries (since I assume these are looking under dbo). Is there any way around updating the queries since I know that all the queries will run on schema abc
?