I'm running the following to retrieve my converted binary data, I then save the output to a file and it is truncated !
SELECT
cast([BINARY_VALUE] as varchar(max)) BLOB_VALUE
FROM [PROD3].[DOMAIN].[BLOBS]
WHERE OBJECT_ID = 881462
How can I save the whole of my converted binary data to a file using sqlserver?