Databases Reference
In-Depth Information
Microsoft.AnalysisServices.PermissionSet.Unrestricted;
break;
}
//add assembly to database
AMO.Database db =
server.Databases.GetByName (args[2]);
db.Assemblies.Add (cAss);
cAss.Update (); //Sends the DDL to
the Server
server.Disconnect ();
Console.WriteLine ("Registered
Assembly");
}
catch (Exception e)
{
Console.WriteLine ("Register Assembly
failed, " + e.Source + " " +
e.Message);
}
}
}
}
The AMO code samples provided in this section are primarily to help you start
using AMO for the various management tasks. The samples provided in this
chapter have been tested for appropriate operations. However these are still
code samples and if you need to write your own AMO programs for manage-
ment operations we expect you to write robust code for your production envir-
onment with appropriate error handling. AMO contains several classes that
help you perform more than just management operations. You can design an
entire database programmatically and deploy the entire database to an Ana-
lysis Services instance.
Synchronization is one of the administrative task operations to move data-
base from test environments to production environments. However, AMO
does not have methods to perform the synchronize operation. AMO allows
Search WWH ::




Custom Search