I need to select from a table all features that have a date stamp of 9999-09-09 in a date feild. Using the Select by attributes function, entering
results in "A invalid SQL statement was used."
According to ArcGIS Recourses, NC_FLOOD.DBO.L_LEVEE.PAL_DATE = '9999-09-09 00:00:00' should work for ArcSDE SQL Server, however only the statements for Oracle and Postgre SQL SDE databases seem not to produce the error.
Only those statements don’t find any results.
Is this a known bug or am I doing something wrong?
EDIT: ArcSDE 10.1, Desktop 10.2.1
Code:
NC_FLOOD.DBO.L_LEVEE.PAL_DATE = '9999-09-09 00:00:00'
According to ArcGIS Recourses, NC_FLOOD.DBO.L_LEVEE.PAL_DATE = '9999-09-09 00:00:00' should work for ArcSDE SQL Server, however only the statements for Oracle and Postgre SQL SDE databases seem not to produce the error.
Code:
NC_FLOOD.DBO.L_LEVEE.PAL_DATE = date '9999-09-09 00:00:00'
or
NC_FLOOD.DBO.L_LEVEE.PAL_DATE = TIMESTAMP '9999-09-09 00:00:00'
Is this a known bug or am I doing something wrong?
EDIT: ArcSDE 10.1, Desktop 10.2.1