dbTalk Databases Forums  

filter from the datasource

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


Discuss filter from the datasource in the microsoft.public.sqlserver.dts forum.



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

Default filter from the datasource - 02-22-2006 , 01:28 PM






Hi..
I need to extract all employees with state='CA' from a sqlServer 2005.

Solution so far:
What we have done is created a
1) "DataReaderSource" to the DB
2) Then a "conditional split" filters the state="CA"


My questions is....
is it that I first get all the data from the DB and then discard all that is
not "CA".

is this the correct method, or is there a way to extract on the state='CA'
from the DB?


Any help is deeply appreciated.
Nalaka




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

Default Re: filter from the datasource - 02-22-2006 , 07:45 PM






Hello Nalaka,

You need an OLEDB connection to SQL Server.
You need an OLEDB Source Adapter

In your SQL Statement you say

SELECT <column List> FROM <table> WHERE state = 'CA'





Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi..
I need to extract all employees with state='CA' from a sqlServer 2005.
Solution so far:
What we have done is created a
1) "DataReaderSource" to the DB
2) Then a "conditional split" filters the state="CA"
My questions is....
is it that I first get all the data from the DB and then discard all
that is
not "CA".
is this the correct method, or is there a way to extract on the
state='CA' from the DB?

Any help is deeply appreciated.
Nalaka



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

Default Re: filter from the datasource - 02-23-2006 , 04:55 PM



Thanks


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Hello Nalaka,

You need an OLEDB connection to SQL Server.
You need an OLEDB Source Adapter

In your SQL Statement you say

SELECT <column List> FROM <table> WHERE state = 'CA'





Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Hi..
I need to extract all employees with state='CA' from a sqlServer 2005.
Solution so far:
What we have done is created a
1) "DataReaderSource" to the DB
2) Then a "conditional split" filters the state="CA"
My questions is....
is it that I first get all the data from the DB and then discard all
that is
not "CA".
is this the correct method, or is there a way to extract on the
state='CA' from the DB?

Any help is deeply appreciated.
Nalaka





Reply With Quote
  #4  
Old   
Peter Yang [MSFT]
 
Posts: n/a

Default Re: filter from the datasource - 02-23-2006 , 07:42 PM



Hello Nalaka,

Welcome!

Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===


This posting is provided "AS IS" with no warranties, and confers no rights.



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.