SMO에 대한 SQL-DMO 매핑

SQL-DMO(SQL Distributed Management Objects)는 더 이상 SQL Server 2012에 포함되지 않습니다. SMO(SQL Server Management Objects)를 사용하도록 SQL-DMO 응용 프로그램을 변환해야 합니다. SMO 개체 모델은 SQL-DMO와 비슷하므로 대부분의 SQL-DMO 개체는 SMO에서 이름이 같은 개체에 매핑됩니다. 그러나 일부 SQL-DMO 개체는 SMO로 전환되는 과정에서 변경되거나 삭제되었습니다. 다음 표에는 SMO로 직접 변환되지 않은 SQL-DMO 개체에 대해 수행할 수 있는 권장 작업이 나와 있습니다.

SQL-DMO 개체

SMO에서의 동작

View2 개체

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

AlertSystem 개체

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

Application 개체

제거되었습니다.

Backup 개체 및 Backup2 개체

BackupBackupRestoreBase 개체입니다.

BackupDevice 개체

BackupDevice 개체입니다.

BulkCopy 개체 및 BulkCopy2 개체

제거되고 Transfer 개체로 대체되었습니다.

Category 개체

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다. AlertCategory, OperatorCategory, JobCategory 개체로 대체되었습니다.

Check 개체

Check 개체입니다.

Column 개체 및 Column2 개체

Column 개체입니다.

Configuration 개체

ConfigurationConfigurationBase 개체입니다.

ConfigValue 개체

ConfigProperty 개체입니다.

Database 개체 및 Database2 개체

Database 개체입니다.

DatabaseRole 개체 및 DatabaseRole2 개체

DatabaseRole 개체입니다.

DBFile 개체

DataFile 개체입니다.

DBOption 개체 및 DBOption2 개체

DatabaseOptions 개체로 이동되었습니다.

Default 개체 및 Default2 개체

Default 개체입니다.

DistributionArticle 개체 및 DistributionArticle2 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

DistributionDatabase 개체 및 DistributionDatabase2 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

DistributionPublication 개체 및 DistributionPublication2 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

DistributionSubscription 개체 및 DistributionSubscription2 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

Distributor 개체 및 Distributor2 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

DRIDefault 개체

ScriptingOptions 개체로 이동되었습니다.

FileGroup 개체 및 FileGroup2 개체

FileGroup 개체입니다.

FullTextCatalog 개체 및 FullTextCatalog2 개체

FullTextCatalogFullTextIndex 개체입니다.

Index 개체 및 Index2 개체

Index 개체입니다.

IntegratedSecurity 개체

Microsoft.SqlServer.Management.Common 네임스페이스의 ServerConnection 개체로 기능이 이동되었습니다.

Job 개체

Job 개체입니다. Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

JobFilter 개체

JobFilter 개체입니다. Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

JobHistoryFilter 개체

JobHistoryFilter 개체입니다. Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

JobSchedule 개체

JobSchedule 개체입니다. Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

JobServer 개체 및 JobServer2 개체

JobServer 개체입니다. Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

JobStep 개체

JobStep 개체입니다. Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

Key 개체

ForeignKeyIndex 개체입니다.

LinkedServer 개체 및 LinkedServer2 개체

LinkedServer 개체입니다.

LinkedServerLogin 개체

LinkedServerLogin 개체입니다.

LogFile 개체

LogFile 개체입니다.

Login 개체 및 Login2 개체

Login 개체입니다.

MergeArticle 개체 및 MergeArticle2 개체

MergeArticle 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

MergeDynamicSnapshotJob 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

MergePublication 개체 및 MergePublication2 개체

MergePublication 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

MergePullSubscription 개체 및 MergePullSubscription2 개체

MergePullSubscription 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

MergeSubscription 개체

MergeSubscription 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

MergeSubsetFilter 개체

N:Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

NameList 개체

제거되었습니다. Scripter 개체의 대체 기능입니다.

Operator 개체

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

Permission 개체 및 Permission2 개체

ServerPermission, DatabasePermission, ApplicationRoleObjectPermission 개체입니다.

Property 개체

Property 개체입니다.

Publisher 개체 및 Publisher2 개체

ReplicationServer 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

QueryResults 개체 및 QueryResults2 개체

DataTable 또는 DataSet 시스템 개체로 대체되었습니다.

RegisteredServer 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

RegisteredSubscriber 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

Registry 개체 및 Registry2 개체

제거되었습니다.

RemoteLogin 개체

ServerConnection 개체입니다. Common 네임스페이스로 이동되었습니다.

RemoteServer 개체 및 RemoteServer2 개체

ServerConnection 개체입니다. Microsoft.SqlServer.Management.Common 네임스페이스로 이동되었습니다.

Replication 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

ReplicationDatabase 개체 및 ReplicationDatabase2 개체

ReplicationDatabase 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

ReplicationSecurity 개체

ServerConnection 개체입니다. Microsoft.SqlServer.Management.Common 네임스페이스로 이동되었습니다.

ReplicationStoredProcedure 개체 및 ReplicationStoredProcedure2 개체

ReplicationStoredProcedure 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

ReplicationTable 개체 및 ReplicationTable2 개체

ReplicationTable 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

Restore 개체 및 Restore2 개체

RestoreBackupRestoreBase 개체입니다.

Rule 개체 및 Rule2 개체

Rule 개체

Schedule 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

ServerGroup 개체

제거되었습니다.

ServerRole 개체

ServerRole 개체입니다.

SQLObjectList 개체

SqlSmoObject 배열입니다.

SQLServer 개체 및 SQLServer2 개체

Server 개체입니다.

StoredProcedure 개체 및 StoredProcedure2 개체

StoredProcedureStoredProcedureParameter 개체입니다.

Subscriber 개체 및 Subscriber2 개체

Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

SystemDatatype 개체 및 SystemDatatype2 개체

DataType 개체입니다.

Table 개체 및 Table2 개체

Table 개체입니다.

TargetServer 개체

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

TargetServerGroup 개체

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스로 이동되었습니다.

TransactionLog 개체

Database 개체로 기능이 이동되었습니다.

TransArticle 개체 TransArticle2 개체

TransArticle 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

Transfer 메서드 및 Transfer2 개체

Transfer 개체입니다.

TransPublication 개체 및 TransPublication2 개체

TransPublication 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

TransPullSubscription 개체 및 TransPullSubscription2 개체

TransPullSubscription 개체입니다. Microsoft.SqlServer.Replication 네임스페이스로 이동되었습니다.

Trigger 개체 및 Trigger2 개체

Trigger 개체입니다.

User 개체 및 User2 개체

User 개체입니다.

UserDefinedDatatype 개체 및 UserDefinedDataType2 개체

UserDefinedType 개체입니다.

UserDefinedFunction 개체

UserDefinedFunctionUserDefinedFunctionParameter 개체입니다.

View 개체 및 View2 개체

View 개체입니다.

참고 항목

관련 자료

SMO(SQL Server Management Objects) 프로그래밍 가이드