Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert GUID to string in SQL Server Reporting Services

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..

Please advise

like image 219
user1046415 Avatar asked Aug 22 '12 18:08

user1046415


People also ask

How do I change the datatype in paginated report?

The default data type for a report parameter is String. To change the default data type of a report parameter, select the correct value from the Data type drop-down list on the General page of the Report Parameter Properties dialog box.

What is GUID data type in SQL Server?

The globally unique identifier (GUID) data type in SQL Server is represented by the uniqueidentifier data type, which stores a 16-byte binary value. A GUID is a binary number, and its main use is as an identifier that must be unique in a network that has many computers at many sites.

What data type is a GUID?

The GUID data type is a 16 byte binary data type. This data type is used for the global identification of objects, programs, records, and so on. The important property of a GUID is that each value is globally unique. The value is generated by an algorithm, developed by Microsoft, which assures this uniqueness.


1 Answers

=CType(Fields!number.Value, GUID).ToString
like image 172
LittleBobbyTables - Au Revoir Avatar answered Oct 04 '22 05:10

LittleBobbyTables - Au Revoir