Question : Coldfusion-SQL- storing large text files.

Hello experts.
What type i have to use in MSSQL and MYSQL to store very large text files(>8000).I read some comments to choose varbinary(max)-I have MSSQL 2000 and i don't see this option- ,or to split the data every 8000 characters.or to choose the text option......
What would be the best way if i will need to search for a word inside this text or if i will need to easy update the file?
(i'm using coldfusion server language)
Any help?

Answer : Coldfusion-SQL- storing large text files.

(no points ...)

I can only tell you a few basics about MS SQL... and maybe recommend you split the question up a little differently so you get a better answer.  The reasons being a) this is more of a db zone question than CF and b) not every db expert knows *both* MS SQL and MySQL. So IMHO, you may want to split this into 2 questions:  1 for the MS SQL portion and 1 for the MySQL portion.

The MS SQL 2000 equivalent of varchar(max) is the "text" data type (or ntext for unicode).  The maximum capacity is 2,147,483,647 for text and 1,073,741,823 for ntext
http://msdn.microsoft.com/en-us/library/ms187993.aspx

You CAN'T index "text" fields in MS SQL. But you can set up full text searching, which is whole 'nother topic in and of itself ...
http://www.databasejournal.com/features/mssql/article.php/1438211/Setting-Up-Full-Text-Search-A-Step-by-step-Guide.htm

If db storage is not a requirement, there's obviously other search mechanisms available like Verity (CF8) or Solr (CF9).  

Good Luck!
Random Solutions  
 
programming4us programming4us