Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

TSQL Challenge 51 - Convert long Binary strings to Decimal strings

By Jacob Sebastian,

TSQL Challenge 51 - Convert long Binary strings to Decimal strings

TSQL Challenge 40 challenged you to a query that converts binary values into hexadecimal format. This challenge invites you to write a query that converts binary values into decimal format.

The tough part with this challenge is that the input strings can be up to 2048 characters long. This means that the solution will have to perform calculations on very large decimal numbers (over 600 digits) which makes this more difficult than TC40.

http://beyondrelational.com/blogs/tc/archive/2011/03/07/tsql-challenge-51-convert-long-binary-strings-to-decimal-strings.aspx

 
Total article views: 6673 | Views in the last 30 days: 2
 
Related Articles
ARTICLE

TSQL Challenge 40 - Convert string representation of numeric values fr

This challenge involves converting numeric values from binary format to hexadecimal format.

SCRIPT

Convert binary SID to string

Converts a binary SID to string format.

ARTICLE

TSQL Challenge 55 - Multiply two very long decimal strings and return

This challenge to multiply two positive integer strings and return their product. The strings can be...

FORUM

TSQL Challenge 51 - Convert long Binary strings to Decimal strings

Comments posted to this topic are about the item [B]TSQL Challenge 51 - Convert long Binary strings ...

FORUM

Convert the Binary data type to string data type

Convert the Binary data type to string data type

Tags
 
Contribute