Health Is wealth,Be sound And good

Sunday, January 15, 2017

SQL-Server T-SQL UDF: Encode / Decode Decimal Numbers to/from ANY Number Base (Hexadecimal, Binary, Alpha, etc)


SQL Server Source Code for UDF (User Defined Function) to
Convert From/To (Between) Decimal, Hexadecimal, Binary, Alphanumeric or ANY Number Base

Below, I have provided the source code for two Transact-SQL User Defined Functions that work together to convert (i.e., encode / decode) between base-10 (i.e., Decimal or radix-10) and any other radix, whether hexadecimal or binary or some random

No comments:

Post a Comment