May 1, 2012 at 9:29 pm
Hi,
Decided to check out the filestreaming feature. Created a copy of the current table replacing [Descripton] [nvarchar](max) column with [Descripton] [varbinary](max) FILESTREAM. However when I do a select for this column from both tables I get something like:
"Hello world..." for the old column and
"0x4A00650072006F006D00650020006A006F0069006E00730020005..." for the new one.
If I decide to full text this column, how this would work with varbinary data type?
Thanks.
May 1, 2012 at 10:16 pm
How did you convert it over? just an insert?
This looks like binary data. Maybe a cast( as nvarchar)?
May 2, 2012 at 12:20 am
I used an insert putting convert(varbinary(max), Description) for the column.
May 2, 2012 at 7:13 am
If you converted it over to a varbinary, you need to convert it back.
DECLARE @c VARCHAR(20), @b VARBINARY(max), @d VARCHAR(20)
SET @c = 'Test'
SELECT @b = CONVERT(VARBINARY(MAX), @c)
SELECT @d = CONVERT(VARCHAR(20), @b)
SELECT @c, @b, @d
May 2, 2012 at 5:17 pm
Yep, but how does it help with Full text indexing?
May 3, 2012 at 9:51 am
How does what help?
If this is just text data, is there a reason you can't just index the text data? If it's in Filestream, I know you can full text index data with an iFilter in a Filestream column. Not sure about 2008.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply