on 08-25-2011 11:33 AM
Hi Experts,
I have a problem with reciever JDBC synario.
Target Oracle table has columns named 2 bytes Japanese character like "日本".
Datatype cannot accept 2bytes character as element name.
So, I would like to how to replace column name on runtime.
Please tell me.
Regards,
Shinya Kawaoge
You can rename table column name with ALTER TABLE sql command.
To rename a column in an existing table, the ALTER TABLE syntax is:
ALTER TABLE table_name
RENAME COLUMN old_name to new_name;
You can insert the ALTER TABLE command in a Stored Procedure, and call it from JDBC Channel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shinya,
Alternatively, you can also design your receiver interface as follows:
<root>
<StatementName>
<anyName action=u201DSQL_DMLu201D>
<access>alter table <tablename> rename column <old_Column_Name> to <new_Column_Name></access>
</anyName >
</StatementName>
</root>
And this will do the trick for you.
Please take a look at the following URL for your reference:
http://help.sap.com/saphelp_nw73/helpdata/en/44/7b7855fde93673e10000000a114a6b/content.htm
Hope this helps.
Regards, Gaurav
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
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.