FIX: The naming convention that the Partition Aggregation utility and the Partition Manager utility use could allow duplicate aggregations for partitions (897350)



The information in this article applies to:

  • Microsoft SQL Server 2000 Analysis Services

BUG #: 14550 (Plato7x)

Plato7x:14550

SYMPTOMS

When you use either of the following utilities, duplicate aggregations may be created for a partition:
  • The Partition Aggregation. The Partition Aggregation utility is included with Microsoft SQL Server Accelerator for Business Intelligence (SQL Server Accelerator for BI).
  • The Partition Manager. The Partition Manager is included with the SQL Server 2000 Resource Kit.

CAUSE

When an aggregation is added to the collection of aggregations for a partition, the Decision Support Objects (DSO) API examines the Name property of the newly added aggregation. DSO performs this test to determine whether the aggregation is a duplicate of any existing aggregation. This test works for the Analysis Manager utilities such as the Storage Design wizard and the Usage Based Optimization wizard. The test works for those utilities because the utilities use the DatasetName (DSN) that the aggregation covers as the name of the aggregation.

Both the Partition Aggregation and the Partition Manager perform the following steps:
  1. Remove all existing aggregations from the partition.
  2. Add aggregations based on the list shown in utility.
When you are adding aggregations to a partition, the Partition Aggregation and the Partition Manager use the following format as the name for the aggregations:

CustomAggnnn

Note nnn is a numeric value that is unique for each aggregation record.

Because the Partition Aggregation and the Partition Manager do not use the DSN in the name, DSO cannot detect if any one of the aggregations are duplicates. With either utility, duplicate aggregations may exist. Additionally, duplicate aggregations may be created if you use the Usage Based Optimization wizard or the Storage Design wizard.

MORE INFORMATION

The Partition Aggregation utility that is included with SQL Server Accelerator for BI has been updated to use the DSN naming convention when saving aggregations. If any duplicate aggregations are found during the save operation, the duplicates are removed from the list, and you receive the following warning message:

Duplicate Aggregations Found

Duplicate Aggregation definitions were found in the aggregation list. These aggregations have been removed.

If you use the Partition Aggregation or the Partition Manager, we recommend that you use the updated version of the utility. To obtain the updated utility, see the "Download Information" section.

If you have developed your own custom DSO application that adds aggregations, update your utility to use the DSN naming convention for aggregation names. By using the DSN naming convention for aggregation names, you help avoid any possible duplicate aggregations. The source code from the Partition Aggregation utility is included in the previous download. You can use that source code as a sample for determining the DSN name of an aggregation.

RESOLUTION

Download information

The following file is available for download from the Microsoft Download Center:
Release Date: April 6, 2005

For more information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

The PartitionAggUtility.exe file contains the following files:

File nameSize
Aggview.bas11,551
Dimensionutility.cls382
Dimutility.bas1,378
Frmabout.frm3,781
Frmabout.frx113,152
Frmaggview.frm49,116
Frmaggview.frx34,722
Frmbrowse.frm3,822
Frmbrowse.frx2,258
Frmdimview.frm 29,560
Frmdimview.frx12,624
Frmhelp.frm10,953
Frmhelp.frx4,595
Frmmdi.frm29,345
Frmmdi.frx14,490
Frmpartagg.frm34,071
Frmpartagg.frx12,624
Frmpartview.frm31,053
Frmpartview.frx12,624
Frmpartwiz.frm29,303
Frmpastaggspart.frm7,165
Frmprocesspartitions.frm21,205
Frmprocesspartitions.frx330
Frmproperties.frm5,960
Frmproperties.frx1,090
Module1.bas11,551
Partitionaggregationutility.vbp1,990
Partitionaggregationutility.vbw708
Partitionmanager.exe 659,456
Partutility.bas1,243

STATUS

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

Modification Type:MajorLast Reviewed:5/11/2005
Keywords:ATdownload kbtshoot kbfix KB897350 kbAudDeveloper