Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Microsoft distributes Microsoft SQL Server 2008 Service Pack 3 (SP3) fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 Service Pack 3 (SP3) fix release.

Symptoms

Consider the following scenario:

  • You have a geometry instance and a GEOMETRYCOLLECTION instance that contains intersecting polygons in Microsoft SQL Server 2008.

  • You create a query that calls the STUnion() method between the twoinstances.

  • You try to run the query.


In this scenario, the intersection of the GEOMETRYCOLLECTION instance's polygons is not contained in the query result that the STUnion() method returns.

Cause

This issue occurs because of a code defect in the STUnion() method.

Resolution

Cumulative update information

Cumulative update package 3 for SQL Server 2008 SP3

The fix for this issue was first released in Cumulative Update 3. For more information about how to obtain this cumulative update package for SQL Server 2008 Service Pack 3, click the following article number to view the article in the Microsoft Knowledge Base:

2648098 Cumulative update package 3 for SQL Server 2008 Service Pack 3Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 Service Pack 3 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

2629969 SQL Server 2008 builds that were released after SQL Server 2008 Service Pack 3 was released

More Information

To reproduce this issue, follow these steps:

  1. Run the following query in Microsoft SQL Server Management Studio:

    DECLARE @p1 geometry = 'GEOMETRYCOLLECTION (POLYGON ((0 0, 1 1, 1 0, 0 0)), POLYGON ((0.5 0, 1.5 1, 1.5 0, 0.5 0)))';
    DECLARE @p2 geometry = 'POINT(0 1)';
    SELECT @p1.STUnion(@p2)
  2. Click the Spatial results tab of the result that is returned by the query.

If the intersection of two triangles from the first parameter is missing, then you have reproduced the issue successfully.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×