Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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: 6661 | 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

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones