sql - SSIS OLE DB Connection Select Statement Cross Server Queries -


i have access database contains lot of information, , import data 1 of it's tables database guid field of rows in 1 database table matches guids in 1 of theirs.

now in data flow task, have ole db source whereby want set data access mode sql statement whereby select records theirguid = myguid.

the problem face database , database on 2 different servers; there way achieve without creating linked servers (whereby have access query database not want). here sample of table (in database a, located on server a):

  • index number
  • name
  • surname
  • special guid
  • status

their table (in database b, located on server b):

  • source id
  • special guid
  • etc...

you doing along these lines:

select     otherservertable.*     linkserver.otherservertable left join     mytable on     otherservertable.key = mytable.key     mytable.key null 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -