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 > Sybase > char vrs varchar

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-03, 11:08
timmoser timmoser is offline
Registered User
 
Join Date: Jan 2003
Posts: 67
char vrs varchar

What is the difference between char and varchar data types? Does it matter which one I use? Is there a benefit to using one over the other?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 01-08-03, 15:54
timmoser timmoser is offline
Registered User
 
Join Date: Jan 2003
Posts: 67
Re: char vrs varchar

Quote:
Originally posted by timmoser
What is the difference between char and varchar data types? Does it matter which one I use? Is there a benefit to using one over the other?

Thanks in advance.
Ok, did my homework...
If the text data in a column varies greatly in length, use a VARCHAR data type instead of a CHAR data type. Although the VARCHAR data type has slightly more overhead than the CHAR data type, the amount of space saved by using VARCHAR over CHAR on variable length columns can greatly reduce I/O reads, improving overall SQL Server performance. [6.5, 7.0, 2000]


Thanks
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