SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


0x004700DD24EBF06E46E0A707561C0BE83EC0 is changing to Binary on import


0x004700DD24EBF06E46E0A707561C0BE83EC0 is changing to Binary on import

Author
Message
justin.lamantia
justin.lamantia
SSC-Enthusiastic
SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)

Group: General Forum Members
Points: 164 Visits: 15
Hello all!

When I run this Query as an Import:
SELECT ID, OWNER, EMAIL
FROM dbo.CLEAR_AUX

i get...

<Binary data> as ID
Barry Bonds as OWNER
abbonds@gmail.com as EMAIL

I need it to Read...
0x004700DD24EBF06E46E0A707561C0BE83EC0 as ID
Barry Bonds as Owner
abbonds@gmail.com as EMAIL

For some reason when i right click the table and select either SELECT TOP or EDIT TOP i get the right values...
But when i GOTO Views and add the table with checkmarks for ID, Owner, and EMAIL its changing the ID to Binary...same with doing an import from that table what am i doing wrong?
Eirikur Eiriksson
Eirikur Eiriksson
SSC Guru
SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)

Group: General Forum Members
Points: 164867 Visits: 23919
justin.lamantia - Thursday, July 12, 2018 8:35 AM
Hello all!

When I run this Query as an Import:
SELECT ID, OWNER, EMAIL
FROM dbo.CLEAR_AUX

i get...

<Binary data> as ID
Barry Bonds as OWNER
abbonds@gmail.com as EMAIL

I need it to Read...
0x004700DD24EBF06E46E0A707561C0BE83EC0 as ID
Barry Bonds as Owner
abbonds@gmail.com as EMAIL

For some reason when i right click the table and select either SELECT TOP or EDIT TOP i get the right values...
But when i GOTO Views and add the table with checkmarks for ID, Owner, and EMAIL its changing the ID to Binary...same with doing an import from that table what am i doing wrong?

Can you elaborate further on this please? We need to know where the data is coming from, what you are using for the import, the destination definition and any other details that are relevant.
Cool

justin.lamantia
justin.lamantia
SSC-Enthusiastic
SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)

Group: General Forum Members
Points: 164 Visits: 15
The Query Is from SQL, an im Running that Query thru EXCEL Power Query. When i put that query into Excel Power Query it Returns

<Binary data> as ID

and not...

0x004700DD24EBF06E46E0A707561C0BE83EC0 as ID
Eirikur Eiriksson
Eirikur Eiriksson
SSC Guru
SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)

Group: General Forum Members
Points: 164867 Visits: 23919
justin.lamantia - Thursday, July 12, 2018 10:30 AM
The Query Is from SQL, an im Running that Query thru EXCEL Power Query. When i put that query into Excel Power Query it Returns

<Binary data> as ID

and not...

0x004700DD24EBF06E46E0A707561C0BE83EC0 as ID

Create a view on the SQL with the type conversion and then query it!
Cool
You can also do the conversion as a step in the Power Query but that is less efficient.

justin.lamantia
justin.lamantia
SSC-Enthusiastic
SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)

Group: General Forum Members
Points: 164 Visits: 15
how is it done in SQL?
justin.lamantia
justin.lamantia
SSC-Enthusiastic
SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)

Group: General Forum Members
Points: 164 Visits: 15
I created the Query with view...How do i convert the ID in VIEW?
justin.lamantia
justin.lamantia
SSC-Enthusiastic
SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)

Group: General Forum Members
Points: 164 Visits: 15
Here is the View Query...

SELECT TOP (100) PERCENT dbo.CLEAR.ID, dbo.CLEAR.DESCRP, dbo.CLEAR_AUX.OWNER, dbo.CLEAR_AUX.EMAIL
FROM dbo.CLEAR INNER JOIN
dbo.CLEAR_AUX ON dbo.CLEAR.ID = dbo.CLEAR_AUX.ID
WHERE (NOT (dbo.CLEAR.DESCRP LIKE N'%----%'))
ORDER BY dbo.CLEAR.DESCRP

How do i convert the ID
Eirikur Eiriksson
Eirikur Eiriksson
SSC Guru
SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)SSC Guru (164K reputation)

Group: General Forum Members
Points: 164867 Visits: 23919
justin.lamantia - Thursday, July 12, 2018 10:53 AM
Here is the View Query...

SELECT TOP (100) PERCENT dbo.CLEAR.ID, dbo.CLEAR.DESCRP, dbo.CLEAR_AUX.OWNER, dbo.CLEAR_AUX.EMAIL
FROM dbo.CLEAR INNER JOIN
dbo.CLEAR_AUX ON dbo.CLEAR.ID = dbo.CLEAR_AUX.ID
WHERE (NOT (dbo.CLEAR.DESCRP LIKE N'%----%'))
ORDER BY dbo.CLEAR.DESCRP

How do i convert the ID

Roughly, something like this
Cool

SELECT  
CONVERT(VARCHAR(36),CL.CLEAR.ID,0) AS ID
,CL.CLEAR.DESCRP
,CLA.OWNER
,CLA.EMAIL
FROM dbo.CLEAR CL
INNER JOIN dbo.CLEAR_AUX CLA
ON dbo.CLEAR.ID = dbo.CLEAR_AUX.ID
WHERE (NOT (dbo.CLEAR.DESCRP LIKE N'%----%'))
ORDER BY dbo.CLEAR.DESCRP;

justin.lamantia
justin.lamantia
SSC-Enthusiastic
SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)

Group: General Forum Members
Points: 164 Visits: 15

justin.lamantia
justin.lamantia
SSC-Enthusiastic
SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)

Group: General Forum Members
Points: 164 Visits: 15

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum









































































































































































SQLServerCentral


Search