Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7889269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:03:22+00:00 2026-06-03T06:03:22+00:00

I use SQL Server 2005. I wanted to know if it is even possible

  • 0

I use SQL Server 2005. I wanted to know if it is even possible to read binary data printed from SQL-Server in other environments such as Matlab?

For example,

SET NOCOUNT ON 
CREATE TABLE #Temp ( C1 binary ) INSERT INTO #Temp (C1) SELECT 100

SELECT * FROM #Temp

DROP TABLE #Temp

The result is 0x64 which I believe is hexadecimal notation. This data when viewed using notepad looks the same. However, a binary 100 written from Matlab when opened in notepad is definitely not hexadecimal! Please help/comment!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:03:23+00:00Added an answer on June 3, 2026 at 6:03 am

    You should be able to read binary output from SQL Server in other tools, given they handle binary input.

    From what you’ve written, you’re not comparing things in an equivalent way (apples-to-apples). Hexadecimal is just one way of representing the bits in human-sensible form, so unless your viewing methods are both capable of using the same notation, you’ll probably see different things. I’m pretty sure Notepad doesn’t do hex.

    The SSMS “output” of 0x64 is the tool’s way of representing binary data – in this case, decimal value 100 – in print/on screen. If you cut & paste from the SSMS window, you’re actually cutting the text string “0x64”, so opening that in Notepad will look the same, but it’s not in actuality your original decimal 100 value.

    If you’re saving a file from Matlab & opening that in Notepad, you should see the byte value(s) interpreted as text, probably ‘d’ (lower-case “D”) in this case since that’s the ASCII/UTF-8 value for decimal 100.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know how can I use tinyint in SQL Server 2005
How do I get a database from ODBC data source to SQL Server 2005?
I use SQL Server 2005 as a data store for a lot of data
We use SQL Server 2005. All our data access is done through stored procedures.
I use SQL Server 2005. I have a simple logging table that my web
I'm trying to use SQL Server Profiler (2005) to track down some application performance
We use a software which uses Sql server 2005 as back-end. The problem is
We currently have in production SQL Server 2005 and we use it's full text
I was wondering if i can use a single query in sql server 2005
I use sql server 2005 enterprise, windows server 2003. I try execute osql.exe command,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.