I have this definition query that worked for a layer from a file geodatabase. Now the same query will not work from the same layer in an SDE. I am getting a 'SQL Server Native Client Syntax' error. Any thoughts?
ExprDate <= (CURRENT_DATE + 30) AND ExprDate >= CURRENT_DATE
Screenshot
1 Answer 1
Try it with getdate()
ExprDate <= (GETDATE() + 30) AND ExprDate >= GETDATE()
answered Mar 10, 2015 at 19:27
-
2In addition, SQL Server supports the BETWEEN operator:
ExprDate BETWEEN GetDate() AND GetDate() + 30
Berend– Berend2015年03月11日 14:30:36 +00:00Commented Mar 11, 2015 at 14:30
Explore related questions
See similar questions with these tags.
lang-sql