Click here to Skip to main content
15,888,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi, how to use the CASE WHEN syntax in sql command at the component excel source editor SSIS?
Posted
Comments
Maciej Los 20-Feb-14 17:11pm    
What?

1 solution

I'm not sure what you want to achieve, but here[^] you'll find the sample usage of SQL CASE WHEN ... END statement. But...
You need to know that OLEDB provider does not support CASE WHEN ... END statement. Rather than it, use IFF statement[^].
 
Share this answer
 
Comments
ahmed boughedda 21-Feb-14 18:06pm    
Maciej thank you, you are absolutely right, I use a component in SSIS OLEDB to query an excel sheet, then I think my sql query becomes: "SELECT prodid, IIF (prodid = 1, 'fine', IIF (prodid = 2, 'good','')) FROM MyExcel "
Maciej Los 23-Feb-14 6:41am    
;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900