Is it better to set an index (primary or secondary) on a varchar(x)
or varbinary(x)
column?
I wasn't sure it even mattered. However what I see online (Googled - varchar vs varbinary) is that varchar
is almost dead or being pushed to the way side. So is this better to index or something? Could it be the type of index?
Excellent scenario: Indexing email addresses ([edit] encrypted byte array {varbinary} or string equivalent {varchar})
Thanks
Answer?
It seems that indexes on varbinary
is the worst thing ever. Am I reading this right?
varbinary
is for binary data - like a PDF file, a video stream, a MP3 file etc. whilevarchar(x)
is for text data - strings, paragraphs, entire book sections. Those have nothing to do with one another..... andvarchar(x)
is most definitely nowhere near "dead" ..... – Odeliaodelinda