Incorrect Data Displayed for Binary Column When Querying SQL Server Table in DBeaver #35720
-
DescriptionI am encountering an issue when querying a SQL Server table in DBeaver. Specifically, the query:
returns the correct data when executed directly in SQL Server Management Studio (SSMS). However, when the same query is executed in DBeaver, it returns garbled or incorrect data. DBeaver Version21.0.0 Operating SystemWindows Database and driverDatabase: SQL Server Steps to reproduceOpen DBeaver and connect to the SQL Server database.
Compare the results with the output from SQL Server Management Studio (SSMS). You can also try this by adding any binary column and check as shown. Expected Result: The data returned by DBeaver should match the data returned by SSMS. Actual Result: DBeaver displays incorrect or garbled data for the query. Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, @arsalanhub
|
Beta Was this translation helpful? Give feedback.
-
@E1izabeth Shouldn't it by default dispalyed in hex-format based on data type? |
Beta Was this translation helpful? Give feedback.
-
We don't think hex should be default display format. The binary data may not be hex - in this case showing hex by default is not a good idea. It's not so rare strings are stored in the binary column. |
Beta Was this translation helpful? Give feedback.
Hi, @arsalanhub
You can switch Binary format view to Hex to get the desired behavior. It's in
context menu -> View/Format->Binary format
Additionaly, it's possible to view cell values in the Hex editor in Value viewer Panel.