QUESTION:
I have a requirement to execute the same xquery against different database environments. Can I do this with the same xquery document but different dbs?
Subject:Defining 'connection string' for ddtek:sql-insert at runtime. Author:Ivan Pedruzzi Date:12 Jun 2013 02:58 PM
This is by design, DataDirect XQuery requires a literal to identify the table.
You will need to create multiple queries. You may also insert on multiple tables from the same query as long as the tables resides on the same database.
Subject:Defining 'connection string' for ddtek:sql-insert at runtime. Author:chris misztur Date:12 Jun 2013 03:18 PM
I do see the connection info in the xqery metadata. So basically I would have to pre-process the file somehow to alter the metadata or API or create another xquery.
Subject:Defining 'connection string' for ddtek:sql-insert at runtime. Author:Ivan Pedruzzi Date:12 Jun 2013 03:46 PM
I have to warn you, changing the metadata block outside Stylus Studio is not supported, this means there is no guarantee that will work on future releases.
DataDirect XQuery is only available as Java library.