在 SQL Server Reporting Services 中将 GUID 转换为字符串 [英] Convert GUID to string in SQL Server Reporting Services

查看:80
本文介绍了在 SQL Server Reporting Services 中将 GUID 转换为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在报告中显示 GUID 列时..它显示为 #error..

While trying to display a GUID column in a report ..its displayed as #error..

=CStr(Fields!number.Value).ToString

我在列的属性中尝试了上面的代码..它不起作用..

I tried the above code in the properties of the column..it doesn't work..

请指教

推荐答案

=CType(Fields!number.Value, GUID).ToString

这篇关于在 SQL Server Reporting Services 中将 GUID 转换为字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆