but i can’t share the logs. i mentioned all the details needed in the previous email. other information in logs is specific to my client and project.
my query is simple, while using the jdbc adapter service (insert or select template), when choosing the schema named as one the sql keyword, how to wrap the schema name inside so that sql statement processor can escape the sql keywords in and proceed with execution
alternatively i can go ahead and use the custom sql template, but i would like to know how can select template be used in my scenario.
The latest driver I know of is sqljdbc_4.1.5605.100 (available from Microsoft/MSDN)
Usually the table selector in the templates has an option “current.catalolg”.“current schema”, pointing to the default schema of the user configured in the jdbc connection.
When selecting this, there should be no need to escape the schema name for distinguishing from table names or other key words.
As there have been quite some issues dealing with MS SQL Databases, please consider applying JDBC_6.5_Fix51 or upgrading to JDBC Adapter 9.0 (and apply Fix5 to it).
Another option might be to consider renaming the schema.
What is the exact error message when the service fails?
I agree with Holger on below option which you don’t need to change even when you are migrating code from one environment to other.
Usually the table selector in the templates has an option “current.catalolg”.“current schema”, pointing to the default schema of the user configured in the jdbc connection.
You better try above option and let us know if you see any challenges.