Hi @Tahir Khalil
How about change the column type to VARBINARY(MAX):
CAST(ColumnName AS VARBINARY(MAX))
Best regards,
Cosmog
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".