Compartir a través de


CubeAdmin.SetCubeBuildingSettings Method

Deprecated in Project Server 2010. Instead, use UpdateOlapDatabaseSettings(Guid, CubeSettingsDataSet).

Namespace:  [CubeAdmin Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/CubeAdmin.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/CubeAdmin.asmx?wsdl

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/SetCubeBuildingSettings", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/",  _
    ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function SetCubeBuildingSettings ( _
    asCubeUID As Guid, _
    ASServerName As String, _
    ASDBName As String, _
    ASDatabaseDescription As String, _
    ASExtraNetAddress As String, _
    dateRangeChoice As Integer, _
    pastNum As Integer, _
    pastUnit As Integer, _
    nextNum As Integer, _
    nextUnit As Integer, _
    FromDate As DateTime, _
    ToDate As DateTime, _
    updateFreqChoice As Integer, _
    freqNumber As Integer, _
    freqUnit As Integer, _
    startDate As DateTime, _
    startTime As Integer _
) As Integer
'Usage
Dim instance As CubeAdmin
Dim asCubeUID As Guid
Dim ASServerName As String
Dim ASDBName As String
Dim ASDatabaseDescription As String
Dim ASExtraNetAddress As String
Dim dateRangeChoice As Integer
Dim pastNum As Integer
Dim pastUnit As Integer
Dim nextNum As Integer
Dim nextUnit As Integer
Dim FromDate As DateTime
Dim ToDate As DateTime
Dim updateFreqChoice As Integer
Dim freqNumber As Integer
Dim freqUnit As Integer
Dim startDate As DateTime
Dim startTime As Integer
Dim returnValue As Integer

returnValue = instance.SetCubeBuildingSettings(asCubeUID, _
    ASServerName, ASDBName, ASDatabaseDescription, _
    ASExtraNetAddress, dateRangeChoice, _
    pastNum, pastUnit, nextNum, nextUnit, _
    FromDate, ToDate, updateFreqChoice, _
    freqNumber, freqUnit, startDate, _
    startTime)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/SetCubeBuildingSettings", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/", 
    ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int SetCubeBuildingSettings(
    Guid asCubeUID,
    string ASServerName,
    string ASDBName,
    string ASDatabaseDescription,
    string ASExtraNetAddress,
    int dateRangeChoice,
    int pastNum,
    int pastUnit,
    int nextNum,
    int nextUnit,
    DateTime FromDate,
    DateTime ToDate,
    int updateFreqChoice,
    int freqNumber,
    int freqUnit,
    DateTime startDate,
    int startTime
)

Parameters

  • ASServerName
    Type: System.String
    Name of the Analysis Services server.
  • ASDBName
    Type: System.String
    Name of the Analysis Services database.
  • ASDatabaseDescription
    Type: System.String
    Description of the Analysis Services database.
  • ASExtraNetAddress
    Type: System.String
    Extranet address of the Analysis Services server.
  • dateRangeChoice
    Type: System.Int32
    Choice of date range (0 to 2).
  • pastNum
    Type: System.Int32
    Past date range number (0 to 3000).
  • pastUnit
    Type: System.Int32
    Past date range unit (0 to 2).
  • nextNum
    Type: System.Int32
    Next date range number (0 to 3000).
  • nextUnit
    Type: System.Int32
    Next date range unit (0 to 2).
  • updateFreqChoice
    Type: System.Int32
    Update frequency (0 or 1).
  • freqNumber
    Type: System.Int32
    Frequency number (0 to 3000).
  • startTime
    Type: System.Int32
    Time to start building the cube (0 to 47).

Return Value

Type: System.Int32
Returns -1 for an error, or 0 for success in making the CBS settings.

Remarks

Warning

SetCubeBuildingSettings is available only for Office Project Server 2007 compatibility. The method sets the database passed in ASDBName as the default database, so should not be used with Project Server 2010.

In Office Project Server 2007, SetCubeBuildingSettings makes the specified Cube Build Service (CBS) settings.

Project Server Permissions

Permission

Description

ManageCubeBuildingService

Allows a user to manage settings for OLAP cube creation. Global permission.

ManageSiteServices

Allows a user to administer services such as Active Directory settings and database timeouts. Global permission.

See Also

Reference

CubeAdmin Class

CubeAdmin Members

CubeAdmin Web Service