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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


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

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


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
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date