Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
tech2
Yak Posting Veteran
51 Posts |
Posted - 2015-01-27 : 14:44:39
|
Hi,I'm having trouble converting the statement below to execute on sql server 2012? It works fine on sql server 2008,IIF (PODetailInv.DueDate <= GETDATE(), 'LATE', 'PENDING') AS PassDueI've tried using CASE but can't seem to get it to work.Thanks for your help. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2015-01-27 : 14:46:37
|
Works fine on 2008? IIF is new as of 2012.What error are you getting?Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2015-01-27 : 14:47:18
|
case when PODetailInv.DueDate <= GETDATE() then 'LATE' else 'PENDING' end as PastDueTara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
tech2
Yak Posting Veteran
51 Posts |
Posted - 2015-01-28 : 09:54:08
|
Thanks tkizer,Your conversion worked.Do you know a Link that explains the conversions from sql server 2008 to 2012? |
|
|
|
|
|