View numeric columns in hex - SQL Server Management Studio

Posted by Jonathan on Super User See other posts from Super User or by Jonathan
Published on 2012-11-12T15:52:46Z Indexed on 2012/11/12 17:05 UTC
Read the original article Hit count: 202

Filed under:

In SQL Server Management Studio, when I run a query which outputs a numeric column (int or similar types), they are displayed in decimal (example: 193). I want them to display in hex (example: 0xC1). How do I do that?

I found many answers on how to write converter functions, but I don't want that - only change the display in SSMS. I only found this unanswered question.

I use SQL2010, though may move to SQL2012 soon.

© Super User or respective owner

Related posts about sql-server