DistributionDatabase Object
Questa caratteristica verrà rimossa a partire da una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.
The DistributionDatabase object represents a database located at the Distributor used to store replication information. A Distributor can have multiple distribution databases.
Methods
Osservazioni
With the DistributionDatabase object, you can:
Create a new distribution database.
Change the properties of an existing distribution database.
To add a distribution database to the Distributor
Create a new DistributionDatabase object.
Set the Name property to the name of the new distribution database.
Set the SecurityMode property as appropriate.
If the SecurityMode property is set to SQLDMOSecurity_Normal, set the StandardLogin and StandardPassword properties as appropriate.
Add the DistributionDatabase object to the DistributionDatabases collection of a connected Distributor object.
To alter an existing distribution database
Get a DistributionDatabase object from the DistributionDatabases collection of a connected Distributor object.
Use the BeginAlter method to mark the beginning of the changes.
Set the DistributionDatabase properties to reflect the changes to the distribution database.
Use the DoAlter method to submit the changes to Microsoft SQL Server.
[!NOTA]
The DistributionDatabase object is compatible with instances of SQL Server version 7.0 and later. However, the DistributionDatabase2 object extends the functionality of the DistributionDatabase object for use with features that were introduced in SQL Server 2000.