dbTalk Databases Forums  

Filtered Recordsets

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


Discuss Filtered Recordsets in the microsoft.public.sqlserver.dts forum.



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

Default Filtered Recordsets - 02-13-2005 , 04:11 PM






I have to pull in some data from a huge table on another server. I have a
local table containing the acctnumbers I need. But, I cannot figure out a
way to bring in only the records having an acctnumber in the local table. I
have tried to configure a lookup, but that doesn't work to filter the
incoming records. If I try to bring in all the records and then filter them,
it would be a huge undertaking. The two servers aren't linked and I have
trusted connections to each. What can I do?

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

Default Re: Filtered Recordsets - 02-14-2005 , 12:48 AM






You could of course send the "Filtering table" to the large table destination and do it that way
OR
Look at Linked Servers

--

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


"database_princess" <databaseprincess (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have to pull in some data from a huge table on another server. I have a
local table containing the acctnumbers I need. But, I cannot figure out a
way to bring in only the records having an acctnumber in the local table. I
have tried to configure a lookup, but that doesn't work to filter the
incoming records. If I try to bring in all the records and then filter them,
it would be a huge undertaking. The two servers aren't linked and I have
trusted connections to each. What can I do?



Reply With Quote
  #3  
Old   
database_princess
 
Posts: n/a

Default Re: Filtered Recordsets - 02-14-2005 , 11:09 AM



I assume you meant to send the small filtering table to the server/db where
the large table resides, but I only have read access to that source
server/db. I tried to use oledb, but since it is trusted, it wouldn't work
because you have to have a login and password. I tried running the stored
proc to add the linked server, and I see it when I run sp_linkedservers, but
it doesn't seem to change anything as far as my being able to reference both
servers in a query. Is there some special syntax to this, because I cannot
get it to work....

"Allan Mitchell" wrote:

Quote:
You could of course send the "Filtering table" to the large table destination and do it that way
OR
Look at Linked Servers

--

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


"database_princess" <databaseprincess (AT) discussions (DOT) microsoft.com> wrote in message
news:AA8665B6-7DA2-4338-A3C0-983D0A906909 (AT) microsoft (DOT) com...
I have to pull in some data from a huge table on another server. I have a
local table containing the acctnumbers I need. But, I cannot figure out a
way to bring in only the records having an acctnumber in the local table. I
have tried to configure a lookup, but that doesn't work to filter the
incoming records. If I try to bring in all the records and then filter them,
it would be a huge undertaking. The two servers aren't linked and I have
trusted connections to each. What can I do?




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.