CubeAdmin.SetCubeBuildingSettings method
Deprecated in Project Server 2013. Instead, use UpdateOlapDatabaseSettings(Guid, CubeSettingsDataSet).
Namespace: WebSvcCubeAdmin
Assembly: ProjectServerServices (in ProjectServerServices.dll)
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
asCubeUID
Type: System.GuidGUID of the cube.
ASServerName
Type: System.StringName of the Analysis Services server.
ASDBName
Type: System.StringName of the Analysis Services database.
ASDatabaseDescription
Type: System.StringDescription of the Analysis Services database.
ASExtraNetAddress
Type: System.StringExtranet address of the Analysis Services server.
dateRangeChoice
Type: System.Int32Choice of date range (0 to 2).
pastNum
Type: System.Int32Past date range number (0 to 3000).
pastUnit
Type: System.Int32Past date range unit (0 to 2).
nextNum
Type: System.Int32Next date range number (0 to 3000).
nextUnit
Type: System.Int32Next date range unit (0 to 2).
FromDate
Type: System.DateTimeStart date of data for the cube.
ToDate
Type: System.DateTimeEnd date of data for the cube.
updateFreqChoice
Type: System.Int32Update frequency (0 or 1).
freqNumber
Type: System.Int32Frequency number (0 to 3000).
freqUnit
Type: System.Int32Frequency unit (0 to 2).
startDate
Type: System.DateTimeDate to start building the cube.
startTime
Type: System.Int32Time 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 |
---|---|
Allows a user to manage settings for OLAP cube creation. Global permission. |
|
Allows a user to administer services such as Active Directory settings and database timeouts. Global permission. |