dbTalk Databases Forums  

How to do a join between a table and a recordset

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss How to do a join between a table and a recordset in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SqlJunkies User
 
Posts: n/a

Default How to do a join between a table and a recordset - 11-20-2004 , 06:31 PM






I have a table with 40,000 keys on SQL Server.
In a SQL Task I can create a recordset from that table as an output parameter in a global variable.
I have ODBC access to an Informix DB in DTS.
I don't know how to join the Informix Table with the SQL table.
I don't know how to make the Informix a Linked Server.
So, I would like to join the recordset Global variable with the Informix table. How to do this?

An alternative is to loop thru the recordset as described in the Darren Green article http://www.sqldts.com/?298. For every row, we can do a select from Informix. That's 40,000 Selects! I am afraid that will run until next year.

Any help will be appreciated.


---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How to do a join between a table and a recordset - 11-21-2004 , 04:00 AM






I would try to create the linked server to Informix from SQL Server (Details in Books Online) OR I would transfer the rows from one
of the datasources to the other. This means all the rows are in one place and you can issue a much simpler statement from there.



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"SqlJunkies User" <User@-NOSPAM-SqlJunkies.com> wrote

Quote:
I have a table with 40,000 keys on SQL Server.
In a SQL Task I can create a recordset from that table as an output parameter in a global variable.
I have ODBC access to an Informix DB in DTS.
I don't know how to join the Informix Table with the SQL table.
I don't know how to make the Informix a Linked Server.
So, I would like to join the recordset Global variable with the Informix table. How to do this?

An alternative is to loop thru the recordset as described in the Darren Green article http://www.sqldts.com/?298. For every row,
we can do a select from Informix. That's 40,000 Selects! I am afraid that will run until next year.

Any help will be appreciated.


---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.