Please start any new threads on our new site at 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 

Posting Yak Master

109 Posts

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

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


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

Go to Top of Page

- Advertisement -