简体   繁体   English

SQL Server 2008 R2创建圈

[英]SQL Server 2008 R2 to create circle

I am using SQL Server 2008 R2 and I would like to use CIRCULARSTRING to draw a circle. 我正在使用SQL Server 2008 R2,并且想使用CIRCULARSTRING画一个圆。 I could use the POINT and STBuffer but then the circle is filled with a color, while I want the outline. 我可以使用POINT和STBuffer,但是然后用想要的轮廓填充颜色。 Trying to use the CIRCULARSTRING I get an error message: 尝试使用CIRCULARSTRING我收到一条错误消息:

label CIRCULARSTRING(2 0, in the input well-known text (WKT) is not valid. Valid labels are 标签CIRCULARSTRING(2 0,在输入的已知文本(WKT)中无效。有效的标签是

So I read that this is a feature in SQL Server 2012. 因此,我读到这是SQL Server 2012中的功能。

My questions: 我的问题:

  1. Is there a way to draw the outline of a circle in SQL Server 2008 R2? 有没有一种方法可以在SQL Server 2008 R2中绘制圆圈轮廓?
  2. Can I update SQL Server 2008 R2 to include this feature? 我可以更新SQL Server 2008 R2以包括此功能吗?
  3. If I upgrade to SQL Server 2012 will it be compatible with VS2008 SSRS? 如果我升级到SQL Server 2012,它将与VS2008 SSRS兼容吗?

Thanks 谢谢

This function is presented in SQL Server 2012 (see link below). SQL Server 2012中提供了此功能(请参阅下面的链接)。

  1. You can create custom function to calculate coordinates of point on the circle. 您可以创建自定义函数来计算圆上点的坐标。 It can be TSQL (not sure you can do it) or clr (sure this is better way). 可以是TSQL (不确定是否可以这样做)或clr (确保这是更好的方法)。

  2. No. 没有。

  3. No. 没有。

See also here . 另请参阅此处

See also this question . 另请参阅此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM