Databases Reference
In-Depth Information
}
AMO.Server myServer = new AMO.Server ();
myServer.Connect (args[0]);
foreach (AMO.Database db in
myServer.Databases)
{
if (db.Name.Equals (args[1]))
{
db.Backup
(args[1]+".abf",true); //Backup the database
the provided file name
}//end if
} //end forach
} //end try
catch (Exception e)
{
Console.WriteLine ("Exception
occurred:" + e.Message);
}
} // end Main
} // end class
} // end namespace
using System;
using System.Collections.Generic;
using System.Text;
using AMO = Microsoft.AnalysisServices;
/// <summary>
/// This console program is restore an Analysis
Services backup file
///
----------------------------------------------------------------------
/// </summary>
namespace ASRestore
{
Search WWH ::




Custom Search