Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 excel source date

Author  Topic 

Anand.A
Posting Yak Master

109 Posts

Posted - 2011-11-30 : 02:25:41
hi

i am having source data in excel sheet i want to get that data based on condition

excel sheet(ie,student_list) join_date not in (oledb table student_table load_date )

how to write this in sql command in ssis

anand

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-30 : 03:23:48
no need of using a command
add a data flow task with excel source pointing to excel sheet
add a lookup task to do lookup to sql table on join_date and load_date fields. set the on error property to redirect rows to no match lookup for lookup task.
then link the no match lookup to your destination to get unmatched rows

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -