Create a user-defined aggregate without SQL CLR
-
25-09-2019 - |
Question
I am planning on deploying a database to SQL Azure, so I cannot use the SQL CLR. However, I have a need to create an aggregate function -- in my case, I need to STUnion a bunch of Geography objects together. (Azure is expected to support Spatial by June.)
Is there another way to accomplish this, without making use of the CLR, in a query? Or do I have to create a UDF that will take a table as a parameter and return the aggregate?
Solution
Geography is supported in Azure SQL now.
OTHER TIPS
You can't do it.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow