SQL Server varchar column compare with linked oracle varchar2 column shows not equal -


after upgrade sql server 2008 sql server 2014, statement use find column not exists in oracle tables:

select a.*   left join server1..abc.b on b.id = a.id  b.id null 

does not work more.

the table has varchar(50) id column , oracle table b has varchar2(40) id column. after many attempts, found following statement works

select a.*  left  join server1..abc.b on cast(b.id varchar(50)) = a.id  b.id null 

do need change statements adding explicit conversion functions?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -