Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cast binary to char
Message
 
 
To
25/07/2005 11:46:46
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01035712
Message ID:
01035737
Views:
16
I still don't understand why you're using binary instead of smallint or tinyint.

>I need the right 2 characters from the data 00 - ff. I do not know how to get that from the number. It is being used as a counting mechanism. I have 200 + items that need to be counted in a two char space. This is the way I thought would work the best. Otherwise I will need to make a table with a list in it and use that. (unless a better suggestion is made).
>
>>Would converting to a number work for you?
SELECT CAST(@hex AS int)
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform