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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -