|
-
Dec 7th, 2024, 09:59 AM
#16
Re: Equivalent of Nz() Function
 Originally Posted by grindmore
Instead of nested IIFs, try using COALESCE() - it returns the first non-null value. Or handle the null check in your C# code. Either should work in ADO.NET.
That's what I thought...
but...
 Originally Posted by Shaggy Hiker
Nope, Coalesce isn't a recognized function.
What's annoying is that Nz is recognized in Access, but apparently not in OLEDB ADO.Net, while IsNull is used in the fashion that it works in Access, but not in the fashion it is used in SQL Server. Meanwhile, Coalesce isn't there at all.
Which I don't get because it shoul;d be a SQL function...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|