DeleteStarSchema

Deletes a star schema from a given database.

To delete a star schema, the connected user must be assigned to the Application Administrator role. To check whether the user is assigned to this role, use the HsvSecurityAccess method IsApplicationAdministrator.

Syntax

<HsvStarSchemaACM>.DeleteStarSchema bstrDSN, bstrTablePrefix

Argument

Description

bstrDSN

String (ByVal). The Extended Analytics Data Source Name for the database that contains the star schema to be deleted.

Tip:

To get the Extended Analytics Data Source Names that have been registered on an application server, use EnumRegisteredDSNs.

bstrTablePrefix

String (ByVal). The Relational Table prefix, which is the prefix that identifies the star schema’s tables. All tables with names that begin with this prefix are deleted.

Example

The following example deletes a star schema named Widgets from a data source named ExtendedAnalytics.

'cStarSchema is a previously set HsvStarSchemaACM object
cStarSchema.DeleteStarSchema "ExtendedAnalytics", "Widgets"