on 09-08-2016 10:48 AM
Hi,
I'm trying to change datatype of a column using
"ALTER TABLE <table-name> ALTER(<column-name> NVARCHR(100))"
This is giving me an error "SAP DBTech JDBC: [7]: feature not supported: cannot modify column type from varchar to nvarchar"
Any idea, how to achieve this ALTER?
Regards,
Shubham
Typically, when an ALTER is not supported, you would add a new column of the desired datatype, update the new column with the old column's content, drop the old column, and rename the new column to be the same as the original column.
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shubham,
According below SQL Guide, conversion from VARCHAR to NVARCHAR should not be an issue.
https://help.sap.com/saphelp_hanaplatform/helpdata/en/20/a1569875191014b507cf392724b7eb/content
See if you are reducing column length. If not, while changing from VARCHAR to NVARCHAR, try to give column length as more than double of VARCHAR length.
Lets say if your existing column has VARCHAR(50), then for NVARCHAR give more than 100.
Regards,
Venkat N.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.