I'm looking at adding a spatial reference to my database view, I'm fairly new to SQL and not entirely sure the syntax I need to use.
My query currently looks like this:
SELECT UniqueID, CASE_NUMBER, PROJECT_NAME, APPLICANT, SUB_TYPE_DEFAULT_TEXT, LOCATION, SUB_TYPE_DESC, STATUS_DESC, DATE_ACCEPTED, IMAGE_URL, PDF_URL, STATUS_COMMENTS, PUBLIC_VIEW, SHAPE
FROM *MYDATA**
Query works fine but the base feature class that the tables are pulling from doesn't have a coordinate system.
I was thinking that I could define the SHAPE as the SRID I am looking for, so something like this:
SELECT UniqueID, CASE_NUMBER, PROJECT_NAME, APPLICANT, SUB_TYPE_DEFAULT_TEXT, LOCATION, SUB_TYPE_DESC, STATUS_DESC, DATE_ACCEPTED, IMAGE_URL, PDF_URL, STATUS_COMMENTS, PUBLIC_VIEW, geometry::Polygon(26910) AS SHAPE
FROM *MYDATA**
geometry:Polygon(26910)
That threw back a syntax error and not entirely should how to proceed.
Any help would be much appreciated!
Thanks