![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I tried to create a table that had a column with graphic data type. The database reported that the graphic data types were not supported on my database. I am using the DB2 v8.1. How do I turn this feature on? Thanks GRAPHIC columns are only allowed for codepages which support double byte |
#3
| |||
| |||
|
|
GRAPHIC columns are only allowed for codepages which support double byte codepoints. That would be Unicode databases and the various asian ones. Cheers Serge |
#4
| |||
| |||
|
|
Serge Rielau wrote: GRAPHIC columns are only allowed for codepages which support double byte codepoints. That would be Unicode databases and the various asian ones. I see. I was trying to map a table from SQL Server to DB2. The column was defined as nvarchar type. Is that the correct mapping? To the best of my knowlegde NVARCHAR in SQL Server is UCS-2 (double byte |
#5
| |||
| |||
|
|
To the best of my knowlegde NVARCHAR in SQL Server is UCS-2 (double byte Unicode). In DB2 that would match GRAPHIC in a Unicode database. If you have a lot of NVARCHAR flying around you may want to consider just using a unicode. Your VARCHAR columns will then be UTF-8 and GRAPHIC UCS-2. |
#6
| |||
| |||
|
|
Serge Rielau wrote: To the best of my knowlegde NVARCHAR in SQL Server is UCS-2 (double byte Unicode). In DB2 that would match GRAPHIC in a Unicode database. If you have a lot of NVARCHAR flying around you may want to consider just using a unicode. Your VARCHAR columns will then be UTF-8 and GRAPHIC UCS-2. That is interesting. So, if the database's default character set is unicode or UTF-8, then the SQL Server NVARCHAR would just map to a VARCHAR in DB2. (I take it the same is true for other Nxyz data types too.) That makes sense and simplifies things a lot. Thanks a lot! Yes and no. It is correct that UTF-8 and UCS-2 have the same expressive |
![]() |
| Thread Tools | |
| Display Modes | |
| |