Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Linked Server AS400 Character Data Returned as Binary?

$
0
0

Greetings,

I've been working on trying to convert a field and got stuck. So I figured I'd reach out and see if I can get some help. I've become a bit confused after testing and now I don't know if conversion is the true solution...

I have a simple statement selecting from a linked AS400 server in SQL Server 2012:

select * from openquery(AS400,'select * from library.table')

When the data comes back in SSMS, the first field (supposed to be a date) appears as Binary data. So I had our AS400 expert check and it shows it is indeedcharacter data in the table definition. When queried on the AS400, it appears as 02/22/2016. But appears as 0xF0F261F2F361F2F0F1F6 in SSMS. When I try to use Report Builder, it simply shows .

What was even more strange was that the AS400 expert ran the same query on her local machine and it shows as the correct date in...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>