Databases Reference
In-Depth Information
bool isServerConnected ()
{
return isConnected;
}
What follows is the code necessary to decipher the type of processing to be
carried out on the target cube or dimension based on user's command line in-
put and to determine if it is, in fact, a cube or dimension to be processed:
bool ProcessObject (int objectType,int processType,
string dbName,
string objectName)
{
AMO.ProcessType objectProcessType =
AMO.ProcessType.ProcessDefault;
switch (processType)
{
case 1: objectProcessType =
AMO.ProcessType.ProcessFull; //ProcessFull
break;
case 2: objectProcessType =
AMO.ProcessType.ProcessAdd;
//ProcessIncremental of new members
break;
case 3: objectProcessType =
AMO.ProcessType.ProcessUpdate;
//Process to update existing members
and their properties
break;
case 4: objectProcessType =
AMO.ProcessType.ProcessClear;
//Clear the object
break;
}
switch (objectType)
{
case 1: // Cube Processing
return ProcessCube (dbName, objectName,
Search WWH ::




Custom Search