Databases Reference
In-Depth Information
appropriate processing
// type specified by the user.
Console.WriteLine ("Successfully
processed the object");
Console.WriteLine (cube.LastProcessed);
}
} //end for each
} // end if
} // end foreach
} //end try
catch (Exception e)
{
Console.WriteLine ("Error while processing {0}",
CubeName + e.Message);
return false;
} // end catch
return true;
} // end ProcessCube
To wrap things up, you need only disconnect from the server which is done in
the code below.
~ProcessASObjects ()
{
//Disconnnect the server when this process is
being killed.
try
{
if (myServer.Connected)
myServer.Disconnect ();
}
catch (Exception e)
{
Console.WriteLine ("Exception occurred while
disconnecting from
server"+e.Message);
}
}
Search WWH ::




Custom Search