Problem
Many times I come across column names that are Reserved Words for the database server in the back. When using the KNIME database notes the Reserved Words make the fail to complete the insert, select, update or delete actions.
For SELECT actions (Database Reader node, etc.), you easily add the default escape characters for the specific database engine (e.g. ‘[‘ and ‘]’ for SQL Server) to the query. But this doesn’t work for other actions. The notes for INSERT, UPDATE and DELETE actions work with the columns of your dataset, not a manually crafted query/statement.
Solution / Work-around for UPDATE and DELETE
Simply rename the columns (Column Rename node), giving you trouble, adding a back-quote (`, together with ~ on US-keyboard) before and after the column name. Now the actions do complete succesfully.
This solution works for at least when using a SQL Server 2012 back-end and JTDS-1.3.1 connector in KNIME 3.1.2.
Note
I did not find a solution for the INSERT actions and still use JavaSnippets and handcrafted statements. If anyone has additions or alternative solutions, please share!