Welcome! Log In Create A New Profile

Advanced

Text data from SQL Server binary field

Posted by Jeff Graham 
Jeff Graham
Text data from SQL Server binary field
January 07, 2009 12:05AM
Hi All,

I am trying to extract the binary data from a SQL Server binary (image,null) field. The data is text and SQL Server select shows the data as 0x504D2D35322D31302D32302D3330....

I also have a field that gives the length of the binary field.

Any ideas how to get that into a string?

Thanks,
Jeff
Jeff Graham
Re: Text data from SQL Server binary field
January 07, 2009 12:15AM
Well, I just used Left() function and it worked! It just does not show in the query test.

Thanks for reading!

Jeff
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: