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.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 excel source date
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

109 Posts

Posted - 11/30/2011 :  02:25:41  Show Profile  Reply with Quote

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 - 11/30/2011 :  03:23:48  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000