Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL Server
Expertise: Beginner
Nov 23, 1999

Field That Can Hold More Than 255 Characters

Question:
I need a text (or char) field that can hold more than 255 characters. Something like a Memo field to hold almost unlimited character data. Is this possible?

Answer:
Under SQL 6.5 you can use the TEXT datatype.

Text is not as simple to manipulate as the other datatypes, though, because you only get to retrieve 255 characters at a time, so to read it you must do multiple fetches from the text field.

The other thing to know is that by including the TEXT datatype in your schema, you give up the convenience of single-file restores in that database (some people think it's more of a curse than a blessing anyway, because single-table restores are a great way to foul up the database's referential integrity, like you restoring a table that is out of synchronization with its parents or siblings).

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date