SMO Object Model Namespaces

Applies to: SQL Server (all supported versions) Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics

SQL Server Management Objects (SMO) has various namespaces. The different namespaces represent different areas of functionality within SMO.

In SQL Server 2022 (16.x), the SMO assemblies are located in the C:\Program Files\Microsoft SQL Server\160\SDK\Assemblies folder.

Namespaces

The SMO namespaces are:

Class Function
Microsoft.SqlServer.Management.Smo Contains instance classes, utility classes, and enumerations that are used to programmatically manipulate Microsoft SQL Server.
Microsoft.SqlServer.Management.Common Contains the classes that are common to Replication Management Objects (RMO) and SMO, such as connection classes.
Microsoft.SqlServer.Management.Smo.Agent Contains classes that represent the SQL Server Agent.
Microsoft.SqlServer.Management.Smo.Wmi Contains classes that represent the WMI Provider.
Microsoft.SqlServer.Management.Smo.RegisteredServers Contains classes that represent Registered Server.
Microsoft.SqlServer.Management.Smo.Mail Contains classes that represent Database Mail.
Microsoft.SqlServer.Management.Smo.Broker Contains classes that represent the Service Broker.