Hi,
I have a SQL Server 2008 database with a table that has a column with the data type geography.
I am trying to run the LoadAMSSQL2008FeatureLayer demo...I've confirmed that I am connecting correctly to the database and the table.The errors I receive when displaying the map is:
"An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as "" or [] are not allowed. Change the alsias to a valid name. Incorrect syntax near '.'."
AND
"Can not find the geometry column. Please set the CustomGeometryColumnName property to specific it."
I tried setting the CustomGeometryColumnName to the name of my geography column, but then I get the error: "Operand type clash: sys.geography is incompatible with sys.geometry." This makes sense, since I am using geography columns.
Does anyone know what I should try next?
Thanks,
Treasa