I'm having issues getting a file from a FILESTREAM varbinary(max)
column.
I added it to a table using this:
ALTER TABLE [dbo].News ADD RowGuidColId
UNIQUEIDENTIFIER ROWGUIDCOL NOT NULL UNIQUE DEFAULT (NewId())
GO
ALTER TABLE News ADD NewsPngFile varbinary(max) FILESTREAM NULL
GO
I insert the picture using entity framework. But when I try to query, the GET_FILESTREAM_TRANSACTION_CONTEXT()
returns NULL
. What might be wrong?