I want to convert UniqueIdentifier
value to string value so I can read it.
I am working SSRS Report where I have set datasource for one report. Now, ReportServer has one table named as DataSource
and it has one column named as Link
and its type is Link uniqueidentifier no 16
.
Is it possible to convert this value into varchar()
?
I have tried below but it gives same value.
--To fetch Link
SELECT ds.Link,CAST(ds.Link AS VARCHAR(36)) str
FROM DataSource AS ds
JOIN CATALOG AS c ON c.ItemID = ds.ItemID
WHERE c.Name = 'ReportName'
It gives output like this,
Note: I have already checked this, but doesn't helped me.