ousoonerjoe
Programmer
Database Upgraded from SQL Server 2005 Ent. to SQL Server 2008 Ent.
Is there a difference in the way NULL is evaluated in in 2008 versus 2005? In a stored procedure...
... NULL values would be returned in 2005. Now, after the upgrade last weekend, they are no longer being returned in the query. After setting all NULLs to '', the procedure reverted to working correctly again.
My consern is that NULL's have changed in the way they are being treated/evaluated and may cause an immediate clean up/change of all tables if true.
I realize this is poor coding to begin with, but it wasn't mine to write, just mine to clean up. If NULL has changed, as stated above, it will impact many tables and stored procedures... possibly a view or two.
--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------
Is there a difference in the way NULL is evaluated in in 2008 versus 2005? In a stored procedure...
Code:
WHERE @x <> 'Y'
My consern is that NULL's have changed in the way they are being treated/evaluated and may cause an immediate clean up/change of all tables if true.
I realize this is poor coding to begin with, but it wasn't mine to write, just mine to clean up. If NULL has changed, as stated above, it will impact many tables and stored procedures... possibly a view or two.
--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------