Databases Reference
In-Depth Information
most self-explanatory lines of code. The following code is a sample to kick
start you to learn AMO with some of the processing options for processing di-
mension or cube objects within a database.
#region Using directives
using System;
using System.Collections.Generic;
using System.Text;
using AMO = Microsoft.AnalysisServices;
#endregion
namespace ProcessASObjects
{
class ProcessASObjects
{
Microsoft.AnalysisServices.Server myServer = null;
bool isConnected = false;
static void Main (string[] args)
{
if (args.Length != 6)
{
Console.WriteLine ("ProcessASObjects
<serverName> <1 for Cube/2 for
Dimension> <ProcessType = 1 for Full /2 for Inc /3 for
Update /4 for
<databaseName> <objectName>");
return;
}
ProcessASObjects pASObj = new ProcessASObjects
(args[0]);
if (pASObj.isServerConnected ())
pASObj.ProcessObject (Int32.Parse (args [1]),
Int32.Parse (args [2]),
args[3], args[4]);
}
public ProcessASObjects (string serverName)
{
myServer = new AMO.Server ();
try
{
Search WWH ::




Custom Search