Udostępnij za pośrednictwem


Aktualizacja (interfejs wymiaru)

Ostrzeżenie

  Ta funkcja zostanie usunięta z następnej wersji programu Microsoft SQL Server. Nie należy stosować tej funkcji w nowych projektach oraz jak najszybciej należy zmodyfikować aplikacje, w których obecnie jest używana ta funkcja.

Update metoda Dimension interfejs aktualizacje definicji obiektu wymiar w repozytorium danych meta.

Dotyczy:clsDatabaseDimension

Składnia

object.Update

Uwagi

  • object
    Dimension Obiektu do aktualizacji.

Uwagi

Objects of ClassType clsAggregationDimension, clsCubeDimension, and clsPartitionDimension do not implement the Update method.Są one automatycznie zaktualizowane Update metoda obiektu nadrzędnego MDStore obiekt jest nazywany.

Przykład

Następujące zmiany w przykładzie Description i LastUpdated właściwości wymiar Produkt FoodMart 2000 bazy danych i aktualizuje wymiar na serwerze Analysis:

    Dim dsoServer As New DSO.Server
    Dim dsoDB As DSO.MDStore
    Dim dsoDim As DSO.Dimension
    
    ' Connect to local Analysis server.
    dsoServer.Connect "LocalHost"
    
    ' Open FoodMart 2000 database.
    Set dsoDB = dsoServer.MDStores("FoodMart 2000")

    ' Open the Product dimension.
    Set dsoDim = dsoDB.Dimensions("Product")
    
    ' Change the description and update date
    ' of the dimension.
    dsoDim.Description = "Product dimension"
    dsoDim.LastUpdated = Now
    
    ' Update the dimension.
    dsoDim.Update
    
    ' Clean up.
    Set dsoDim = Nothing
    Set dsoDB = Nothing
    dsoServer.CloseServer
    Set dsoServer = Nothing