This has been bothering me for a long time. I keep avoiding it because I just end up using a SQL executor. to find errors
How is the Writer transformer different than a SQLExecutor when performing MSSQL inserts? [or other functions]. Don’t they use the same driver?
- Here is an example: I recently inserted a row into a table where the string length was too long got the field. The Writer transformer just inserted the string successfully, but it truncated.
- The SQLExecutor threw a SQL error saying, ‘string or binary data would be truncated’ and then failed\rejected the insert.
- I have also run across other odd behavior in the past. Such as the writer having the ability to insert duplicate foreign keys, but the SQLExecutor will fail with error.
- Is there a good resource for this or a good explanation?
Thanks!