SQL-DMO 到 SMO 的映射

多个 SQL 分布式管理对象 (SQL-DMO) 属性已在转换到 SQL Server 管理对象 (SMO) 时移动或删除。下表介绍对尚未直接转换到 SMO 的 DMO 属性所执行的操作。

SQL-DMO 对象

SMO 中的操作

Alert Object

已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

AlertSystem Object

已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

Application Object

已删除。

Backup ObjectBackup2 Object

BackupBackupRestoreBase 对象。

BackupDevice Object

BackupDevice 对象

BulkCopy ObjectBulkCopy2 Object

已删除并由 Transfer 对象代替。

Category Object

已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。已由 AlertCategoryOperatorCategoryJobCategory 对象代替。

Check Object

Check 对象

Column ObjectColumn2 Object

Column 对象。

Configuration Object

ConfigurationConfigurationBase 对象。

ConfigValue Object

ConfigProperty 对象。

Database ObjectDatabase2 Object

Database 对象。

DatabaseRole ObjectDatabaseRole2 Object

DatabaseRole 对象。

DBFile Object

DataFile 对象。

DBOption ObjectDBOption2 Object

已移入 DatabaseOptions 对象中。

Default ObjectDefault2 Object

Default 对象。

DistributionArticle ObjectDistributionArticle2 Object

已移至 Microsoft.SqlServer.Replication 命名空间。

DistributionDatabase ObjectDistributionDatabase2 Object

已移至 Microsoft.SqlServer.Replication 命名空间。

DistributionPublication ObjectDistributionPublication2 Object

已移至 Microsoft.SqlServer.Replication 命名空间。

DistributionSubscription ObjectDistributionSubscription2 Object

已移至 Microsoft.SqlServer.Replication 命名空间。

Distributor ObjectDistributor2 Object

已移至 Microsoft.SqlServer.Replication 命名空间。

DRIDefault Object

已移至 ScriptingOptions 对象。

FileGroup ObjectFileGroup2 Object

FileGroup 对象。

FullTextCatalog ObjectFullTextCatalog2 Object

FullTextCatalogFullTextIndex 对象。

Index ObjectIndex2 Object

Index 对象

IntegratedSecurity Object 对象

功能已移至 Microsoft.SqlServer.Management.Common 命名空间中的 ServerConnection 对象。

Job Object

Job 对象。已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

JobFilter Object

JobFilter 对象。已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

JobHistoryFilter Object

JobHistoryFilter 对象。已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

JobSchedule Object

JobSchedule 对象。已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

JobServer ObjectJobServer2 Object

JobServer 对象。已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

JobStep Object

JobStep 对象。已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

Key Object

ForeignKeyIndex 对象。

LinkedServer ObjectLinkedServer2 Object

LinkedServer 对象。

LinkedServerLogin Object

LinkedServerLogin 对象。

LogFile Object

LogFile 对象。

Login ObjectLogin2 Object

Login 对象。

MergeArticle ObjectMergeArticle2 Object

MergeArticle 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

MergeDynamicSnapshotJob Object

已移至 Microsoft.SqlServer.Replication 命名空间。

MergePublication ObjectMergePublication2 Object

MergePublication 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

MergePullSubscription ObjectMergePullSubscription2 Object

MergePullSubscription 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

MergeSubscription Object

MergeSubscription 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

MergeSubsetFilter Object

已移至 N:Microsoft.SqlServer.Replication 命名空间。

NameList Object

已删除。Scripter 对象中的替代功能。

Operator Object

已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

Permission ObjectPermission2 Object

ServerPermissionDatabasePermissionApplicationRoleObjectPermission 对象。

Property Object

Property 对象。

Publisher ObjectPublisher2 Object

ReplicationServer 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

QueryResults ObjectQueryResults2 Object

已由 DataTableDataSet 系统对象代替。

RegisteredServer Object

已移至 Microsoft.SqlServer.Replication 命名空间。

RegisteredSubscriber Object

已移至 Microsoft.SqlServer.Replication 命名空间。

Registry ObjectRegistry2 Object

已删除。

RemoteLogin Object

ServerConnection 对象。已移至公共命名空间。

RemoteServer ObjectRemoteServer2 Object

ServerConnection 对象。已移至 Microsoft.SqlServer.Management.Common 命名空间。

Replication Object

已移至 Microsoft.SqlServer.Replication 命名空间。

ReplicationDatabase ObjectReplicationDatabase2 Object

ReplicationDatabase 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

ReplicationSecurity Object

ServerConnection 对象。已移至 Microsoft.SqlServer.Management.Common 命名空间。

ReplicationStoredProcedure ObjectReplicationStoredProcedure2 Object

ReplicationStoredProcedure 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

ReplicationTable ObjectReplicationTable2 Object

ReplicationTable 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

Restore ObjectRestore2 Object

RestoreBackupRestoreBase 对象。

Rule ObjectRule2 Object

Rule 对象

Schedule Object

已移至 Microsoft.SqlServer.Replication 命名空间。

ServerGroup Object

已删除。

ServerRole Object

ServerRole 对象。

SQLObjectList Object

SqlSmoObject 数组。

SQLServer ObjectSQLServer2 Object

Server 对象。

StoredProcedure ObjectStoredProcedure2 Object

StoredProcedureStoredProcedureParameter 对象

Subscriber ObjectSubscriber2 Object

已移至 Microsoft.SqlServer.Replication 命名空间。

SystemDatatype ObjectSystemDataType2 Object

DataType 对象。

Table ObjectTable2 Object

Table 对象。

TargetServer Object

已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

TargetServerGroup Object

已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。

TransactionLog Object

功能已移入 Database 对象中。

TransArticle ObjectTransArticle2 Object

TransArticle 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

Transfer MethodTransfer2 Object

Transfer 对象。

TransPublication ObjectTransPublication2 Object

TransPublication 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

TransPullSubscription ObjectTransPullSubscription2 Object

TransPullSubscription 对象。已移至 Microsoft.SqlServer.Replication 命名空间。

Trigger ObjectTrigger2 Object

Trigger 对象。

User ObjectUser2 Object

User 对象。

UserDefinedDatatype ObjectUserDefinedDataType2 Object

UserDefinedType 对象。

UserDefinedFunction Object

UserDefinedFunctionUserDefinedFunctionParameter 对象。

View ObjectView2 Object

View 对象。