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 Object 和 Backup2 Object

Backup 和 BackupRestoreBase 对象。

BackupDevice Object

BackupDevice 对象

BulkCopy Object 和 BulkCopy2 Object

已删除并由 Transfer 对象代替。

Category Object

已移至 Microsoft.SqlServer.Management.Smo.Agent 命名空间。已由 AlertCategory、OperatorCategory 和 JobCategory 对象代替。

Check Object

Check 对象

Column Object 和 Column2 Object

Column 对象。

Configuration Object

Configuration 和 ConfigurationBase 对象。

ConfigValue Object

ConfigProperty 对象。

Database Object 和 Database2 Object

Database 对象。

DatabaseRole Object 和 DatabaseRole2 Object

DatabaseRole 对象。

DBFile Object

DataFile 对象。

DBOption Object 和 DBOption2 Object

已移入 DatabaseOptions 对象中。

Default Object 和 Default2 Object

Default 对象。

DistributionArticle Object 和 DistributionArticle2 Object

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

DistributionDatabase Object 和 DistributionDatabase2 Object

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

DistributionPublication Object 和 DistributionPublication2 Object

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

DistributionSubscription Object 和 DistributionSubscription2 Object

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

Distributor Object 和 Distributor2 Object

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

DRIDefault Object

已移至 ScriptingOptions 对象。

FileGroup Object 和 FileGroup2 Object

FileGroup 对象。

FullTextCatalog Object 和 FullTextCatalog2 Object

FullTextCatalog 和 FullTextIndex 对象。

Index Object 和 Index2 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 Object 和 JobServer2 Object

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

JobStep Object

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

Key Object

ForeignKey 和 Index 对象。

LinkedServer Object 和 LinkedServer2 Object

LinkedServer 对象。

LinkedServerLogin Object

LinkedServerLogin 对象。

LogFile Object

LogFile 对象。

Login Object 和 Login2 Object

Login 对象。

MergeArticle Object 和 MergeArticle2 Object

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

MergeDynamicSnapshotJob Object

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

MergePublication Object 和 MergePublication2 Object

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

MergePullSubscription Object 和 MergePullSubscription2 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 Object 和 Permission2 Object

ServerPermission、DatabasePermission、ApplicationRole 和 ObjectPermission 对象。

Property Object

Property 对象。

Publisher Object 和 Publisher2 Object

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

QueryResults Object 和 QueryResults2 Object

已由 DataTable 或 DataSet 系统对象代替。

RegisteredServer Object

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

RegisteredSubscriber Object

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

Registry Object 和 Registry2 Object

已删除。

RemoteLogin Object

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

RemoteServer Object 和 RemoteServer2 Object

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

Replication Object

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

ReplicationDatabase Object 和 ReplicationDatabase2 Object

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

ReplicationSecurity Object

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

ReplicationStoredProcedure Object 和 ReplicationStoredProcedure2 Object

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

ReplicationTable Object 和 ReplicationTable2 Object

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

Restore Object 和 Restore2 Object

Restore 和 BackupRestoreBase 对象。

Rule Object 和 Rule2 Object

Rule 对象

Schedule Object

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

ServerGroup Object

已删除。

ServerRole Object

ServerRole 对象。

SQLObjectList Object

SqlSmoObject 数组。

SQLServer Object 和 SQLServer2 Object

Server 对象。

StoredProcedure Object 和 StoredProcedure2 Object

StoredProcedure 和 StoredProcedureParameter 对象

Subscriber Object 和 Subscriber2 Object

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

SystemDatatype Object 和 SystemDataType2 Object

DataType 对象。

Table Object 和 Table2 Object

Table 对象。

TargetServer Object

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

TargetServerGroup Object

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

TransactionLog Object

功能已移入 Database 对象中。

TransArticle Object 和 TransArticle2 Object

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

Transfer Method 和 Transfer2 Object

Transfer 对象。

TransPublication Object 和 TransPublication2 Object

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

TransPullSubscription Object 和 TransPullSubscription2 Object

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

Trigger Object 和 Trigger2 Object

Trigger 对象。

User Object 和 User2 Object

User 对象。

UserDefinedDatatype Object 和 UserDefinedDataType2 Object

UserDefinedType 对象。

UserDefinedFunction Object

UserDefinedFunction 和 UserDefinedFunctionParameter 对象。

View Object 和 View2 Object

View 对象。