Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS OLE DB Command parameter

$
0
0

Below is the OLE DB Command transformation SQL command. All I am doing is checking variable value and updating the IsRegistered column on tablePerson(when 0 or null, updating to 1, otherwise updating IsRegistered to 0). But for some reason, null values are not updated. Please help.

UPDATE tablePerson
SET
IsRegistered=(CASE ? WHEN 0 THEN 1 WHEN IS NULL THEN 1 else 0 end)
WHERE Id=?



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>