views:

37

answers:

1

What column type should I use for storing html content from a website with an unknown size?

(I'm scanning certain html pages, and create an database entry if there are changes between the last stored entry and the current html code.)

My database is a MSSQL 2008 express database.

+4  A: 

Use varchar(max)

Ray
+1. Or potentially `nvarchar(max)` if you are worried about Unicode chars. It may also be worth noting that `text` has been deprecated in favour of this :)
Amadiere
you can also use a text column, but varchar(max) is soooo much easy, you can use all the string functions directly on a varchar(max) field...
opensas
@Amadiere: thanx - I forgot nvarchar(max)
Ray
thanks. I'll go with that
citronas