Use the following code when selecting a column from a table:
CAST(
CAST(N'' AS XML).value(
'xs:base64Binary(sql:column("Name"))'
, 'VARBINARY(MAX)'
)
AS VARCHAR(MAX)
) Name
Use the following code when selecting a column from a table:
CAST(
CAST(N'' AS XML).value(
'xs:base64Binary(sql:column("Name"))'
, 'VARBINARY(MAX)'
)
AS VARCHAR(MAX)
) Name