i am looking to encode an INT to BASE32 string in SQL Server 2008.
Any suggestions of built-in function or perhaps a custom function?
Thanks
i am looking to encode an INT to BASE32 string in SQL Server 2008.
Any suggestions of built-in function or perhaps a custom function?
Thanks
Pretty sure this will need some debugging but should be close. I translated from a c# function I found that converts base10 to base32.
Here are a few implementations:
http://dpatrickcaldwell.blogspot.com/2009/05/converting-decimal-to-hexadecimal-with.html
http://snippets.dzone.com/posts/show/707
http://geekswithblogs.net/bbiales/archive/2009/05/04/131732.aspx
If you're looking for human-readable base32, check out Crockford's: http://www.crockford.com/wrmg/base32.html
Looks like a Dell service tag -- avoids confusion between 1 0 I L etc...