Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Types?

Status
Not open for further replies.

aldi

IS-IT--Management
May 10, 2002
421
CA
Please help!!!
Can anybody please tell me what data type to use to save RTFText from a rich text format box and if posible to let me know where to find info about PervasiveSQL 2000 data types?

Thanks in advance!!!
 
Are you using Btrieve or ODBC to insert/read the data? If you're using ODBC, I would probably suggest a LongVarChar or a LongVarBinary. If you're using Btrieve, I would suggest a variable length file, in terms of Btrieve, and then store the RTF data in the variable portion.
That being said, I would almost store the RTF in it's own file and then place a link to the filename in the Btrieve file.
info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
 
Hi zemp, thank you for the link.

Hi mirtheil, I'm using ODBC and the connection is read/write.

What would be the difference when using either longvarchar or longvarbinary???

thanks a lot!!
 
LongVarChar would be used to store strictly character data. If there's a chance that binary data would be stored, even if it's something like a carriage return or other non-printable character, you should use LongVarBinary.
As far as using the two data types, there wouldn't be a difference. I would still strongly recommend using a link in the Btrieve file and storing the RTF in it's own file.
info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top