我正在尝试从包含 Geography 类型的表中返回 XML。
SQL查询:
SELECT *
From Events
ORDER BY HydrantId ASC
FOR XML RAW ('Event'), ROOT ('Events'), ELEMENTS XSINIL;
我收到以下错误:
FOR XML does not support CLR types -
cast CLR types explicitly into one of the supported types in FOR XML queries.
如何将此地理专栏转换为可读的内容?
谢谢。