You are here: DTS question: 2 source tables, 1 target, 3 connections « MsSQL Server « IT news, forums, messages
DTS question: 2 source tables, 1 target, 3 connections

Posted by evan on 10/21/21 11:31

I am converting a sp that joins 2 OPENQUERY statements to populate a
target table into a DTS package.

I have the following SQL statement (whichs execute without error) that
I am required to make a DTS package out of:

INSERT tbl_Sku SELECT AX.sku_id, AX.style_id, AX.style_color_id,
AX.style_size_id, AY.color_id, AY.size_master_id from
OPENQUERY("SVR-1",'SELECT sku_id, style_id, style_color_id,
style_size_id FROM merch.dbo.sku') as AX, OPENQUERY("SVR-2",'SELECT
sku_id, style_id, color_id, size_master_id FROM ma.dbo.sku') as AY
Where AX.sku_id = AY.sku_id

The issue I am having is that I do not know how to use 3 connections
to do this. I have one table that is being loaded from tables on two
different servers. Although they are currently linked servers, I want
to be able to run the existing query using a DTS package. I just do
not know how to set up three connections. I have no problem with two
connections, just three.

Does anyone have experience with setting up a DTS package to insert
into the target table data from 2 other connections, where the
connection inserting into the target table is extracting from yet a
third connection?

I found some references to transformation lookup and was wondering if
anyone reading this has done this before.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация