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

execute sql task case statement

$
0
0

hi

 select increment = case when len(max(id) = 1
then "0000" + max(id)
when len(max(id)) = 2 then "000"+ max(id)
end

 from filesequence

i am getting error incorrect syntax near then

how to use above code properly


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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