Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Service Broker Receive Message

Author  Topic 

shamas21
Starting Member

2 Posts

Posted - 2011-11-05 : 03:33:43
Hi All

I have setup a service broker to send and receive messages.

However, the message that I receive cant be displayed in a readable way. All the message should say is an employee name i.e. 'Dave', but when I cast the message message_body it doesnt display the name 'Dave' instead I get like a encrypted looking cast.

Any ideas?


SELECT *, casted_message_body = CAST(message_body AS NVARCHAR(MAX))
FROM CST.dbo.chat_queue


Thanks
   

- Advertisement -