Databases Reference
In-Depth Information
Once you have mastered the AMO and basic programming concepts shown
in this section, you will find it easy to extend the code to take on other admin-
istrative tasks like tracing server events, designing aggregations, and writing
custom AMO programs for your management tasks.
Back-up and Restore
To convince you that it really is not difficult to extend the concepts demon-
strated in the preceding processing program to complete other console apps
for administrative purposes, please read through these source code samples
covering back-up and restore capabilities.
using System;
using System.Collections.Generic;
using System.Text;
using AMO = Microsoft.AnalysisServices;
/// <summary>
/// This console program is backup an Analysis
Services
///
----------------------------------------------------------------------
/// </summary>
namespace ASBackup
{
class Program
{
static void Main (string[] args)
{
try
{
if (args.Length != 2)
{
Console.WriteLine ("Usage: ASBackup
<servername>
<databasename>");
return;
Search WWH ::




Custom Search