I realise there have been debates about this, although I can find a real definitive answer.
A lot of times, this question leads to a definition of what varchar(MAX) etc is, their actual limits, and what NOT to use.
What I want to find out is this:
I am giving the user an option to type/paste in whatever they want to in a text box, without limit.
This could be anything from a word, to a byte array dump of an image.
I need to then be able to quickly reference to this data at a later stage, using its TITLE or ID.
What would be the best way to go about storing this data into a DB? I have read that using varchar(MAX) stops indexing, and generally should not be used.
I'm not really well-off in SQL, so I imagine a possible solution would be to split this string into arrays of 4000, and store them like that.
Is this a good lead? Or am I missing something obvious?
General Model:
public string a_Title { get; set; }
public string a_Content { get; set; }
public string a_AdditionalInfo { get; set; }
Where a_Content will be stored as the unknown.