You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeing a non-sargable rule logging error with nested built-in date/time functions with no column reference.
The example below is sargable:
SELECT [Name] FROM Foo WHERE Foo.DateCreated BETWEEN DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0) AND DATEADD(DAY, 1, EOMONTH(DATEADD(MONTH, 0, GETDATE())));
EXPECTED: No errors logged.
ACTUAL: A non-sargable error is logged.
The text was updated successfully, but these errors were encountered:
similar to #314
Seeing a non-sargable rule logging error with nested built-in date/time functions with no column reference.
The example below is sargable:
SELECT [Name] FROM Foo WHERE Foo.DateCreated BETWEEN DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0) AND DATEADD(DAY, 1, EOMONTH(DATEADD(MONTH, 0, GETDATE())));
EXPECTED: No errors logged.
ACTUAL: A non-sargable error is logged.
The text was updated successfully, but these errors were encountered: