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

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

Anand.A
Posting Yak Master

India
109 Posts

Posted - 11/30/2011 :  02:25:41  Show Profile  Reply with Quote
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

India
52325 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
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.03 seconds. Powered By: Snitz Forums 2000