Hi!
Well, I performed the following tests (SQL2K SP3):
---
USE Northwind
GO
select ShipRegion from Orders
where ShipRegion IS NOT NULL
select ShipRegion from Orders
where NOT (ShipRegion IS NULL)
---
Auditing with the profiler gives (show plan statistics):
- first query:
Clustered Index Scan(OBJECT[Northwind].[dbo].[Orders].[PK_Orders]), WHERE[Orders].[ShipRegion]NULL))
- second query:
Clustered Index Scan(OBJECT[Northwind].[dbo].[Orders].[PK_Orders]), WHERE[Orders].[ShipRegion]NULL))
As you can see, SQL Server is doing the same thing in both cases, so it has no impact on performance whatsoever.
HTH,
Xavier