If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Equivalent to graphic datatype

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-04, 05:57
Jake K Jake K is offline
Registered User
 
Join Date: Feb 2004
Posts: 107
Equivalent to graphic datatype

hi friends,

do anyone know the equivalent datatype in SQL server to 'graphic' datatype in DB2?
For your information, 'graphic' datatype allows to store double-byte character data. The maximum allowed size
for fixed length type is 127 double-byte chars &
for varying length is 16350 double-byte chars

Appreciate your help.

Jake
Reply With Quote
  #2 (permalink)  
Old 03-01-04, 05:59
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Equivalent to graphic datatype

Please read SQL Reference for your platform and Version

Cheers
Sathyaram

Quote:
Originally posted by Jake K
hi friends,

do anyone know the equivalent datatype in SQL server to 'graphic' datatype in DB2?
For your information, 'graphic' datatype allows to store double-byte character data. The maximum allowed size
for fixed length type is 127 double-byte chars &
for varying length is 16350 double-byte chars

Appreciate your help.

Jake
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 03-01-04, 07:02
Jake K Jake K is offline
Registered User
 
Join Date: Feb 2004
Posts: 107
Re: Equivalent to graphic datatype

Quote:
Originally posted by sathyaram_s
Please read SQL Reference for your platform and Version

Cheers
Sathyaram
thanks for the quick reply. i think i'm not clear in my previous mail. I found a datatype named 'graphic' which allows to store double-byte character data. I am using DB2 UDB 8.1. I like to know the equivalent to this in the MSSQL server 2000, since i want to do the migration.

Jake
Reply With Quote
  #4 (permalink)  
Old 03-02-04, 09:14
cab cab is offline
Registered User
 
Join Date: Mar 2004
Posts: 1
Re: Equivalent to graphic datatype

Quote:
Originally posted by Jake K
thanks for the quick reply. i think i'm not clear in my previous mail. I found a datatype named 'graphic' which allows to store double-byte character data. I am using DB2 UDB 8.1. I like to know the equivalent to this in the MSSQL server 2000, since i want to do the migration.

Jake


mssql equivilent to db2 graphic type: nchar
mssql equivilent to db2 vargraphic type: nvarchar
Reply With Quote
  #5 (permalink)  
Old 03-02-04, 10:52
Jake K Jake K is offline
Registered User
 
Join Date: Feb 2004
Posts: 107
Re: Equivalent to graphic datatype

thanks for the help...
one small correction....
vargraphic can hold 16336 double-byte chars at the max....
but nvarchar can hold only 4000 double-byte chars at the max.....
hence ntext should be used for vargraphic

http://msdn.microsoft.com/library/en...es_04_6zp0.asp

Jake

Quote:
Originally posted by cab
mssql equivilent to db2 graphic type: nchar
mssql equivilent to db2 vargraphic type: nvarchar
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On