Create a user-defined aggregate without SQL CLR

Posted by David Pfeffer on Stack Overflow See other posts from Stack Overflow or by David Pfeffer
Published on 2010-04-07T15:01:49Z Indexed on 2010/04/07 15:03 UTC
Read the original article Hit count: 327

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?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about sql-server-2008