on 01-19-2009 6:44 PM
Hello Guys,
I am working with JDBC receiver adapter and trying to insert rows into a table. I am having problems when trying to create a structure for an insert statement for this table in integration repository, as some rows of this table have special char.
<StatementName>
<dbTableName action=u201DINSERTu201D>
<table>realDbTableName</table>
<access>
<QF@DFI>val1</QF@DFI>
Here's the problem since I cannot create a data type which would represent an strucuture with a field containing '@".
</access>
Any ideas to overcome this issue? Any help will be greatly appreciated.
Regards,
Andre
hi,
the easiest way to overcome this you can create a stored procedure which will update your table
or create a mirror table without @ inside in any fields
and then some job on oyur DB server that will copy once in a while
from mirrow table to the original one
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
Yes, stored procedure is for sure the easiest approach, however this customer is somehow resistant to pull strings when it comes to their AS/400 database. So I was wondering if there were an (easy) way out through XI. If you have an idea for this, please, let me know, cause, as far as I know, that doesn't seem to be possible.
Thanks for your attention.
Regards,
Andre
Hi Guys,
OK, I got your idea, plus the option of working with SQL_DML, because working this way, I don't have to specify the rows (insert into <table> values ('value1', 'value2'), so a quite simple UDF to build the SQL statement receiving the fields as parameters did the job.
My problem is solved, thanks again for your time and best regards.
Andre
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.