SQL Server Management Objects Reference
SQL Server Management Objects (SMO) is a collection of objects that are designed for programming all aspects of managing Microsoft SQL Server.
| Namespace | Description |
|---|---|
| Microsoft.SqlServer.Configuration | The Microsoft.SqlServer.Configuration namespace provides the configuration classes for the SQL server. |
| Microsoft.SqlServer.Management | The Microsoft.SqlServer.Management namespace contains classes and interfaces that are designed to support the management of SQL Server. |
| Microsoft.SqlServer.Management.Collector | The Microsoft.SqlServer.Management.Collector namespace contains classes that are used to implement all aspects of the data collector. |
| Microsoft.SqlServer.Management.Data | The Microsoft.SqlServer.Management.Data namespace contains the class that represents the DataBus class and the classes which support the DataBus class. |
| Microsoft.SqlServer.Management.Dmf | The Microsoft.SqlServer.Management.Dmf namespace contains classes that represent the SQL Server policy-based management objects. |
| Microsoft.SqlServer.Management.Explorer | The Microsoft.SqlServer.Management.Explorer contains the Interfaces which are required to support the database explorer control. |
| Microsoft.SqlServer.Management.Facets | The Microsoft.SqlServer.Management.Facets namespace contains classes that represent the SQL Server policy-based management facet objects. |
| Microsoft.SqlServer.Management.RegisteredServers | The Microsoft.SqlServer.Management.RegisteredServers namespace contains classes that represent the SQL Server Registered Servers service. |
| Microsoft.SqlServer.Management.Scripting | The Microsoft.SqlServer.Management.Scripting Namespace contains the Interfaces which are required to support scripting functionality of the SMO database objects. |
| Microsoft.SqlServer.Management.Sdk.Differencing | Do not reference this member directly in your code. It supports the SQL Server infrastructure. |
| Microsoft.SqlServer.Management.Sdk.Differencing.SPI | Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
| Microsoft.SqlServer.Management.Sdk.Sfc | The Microsoft.SqlServer.Management.Sdk.Sfc namespace contains a set of classes that form an inheritance base for other SQL Server management namespaces, such as Microsoft.SqlServer.Management.Smo. Do not reference this member directly in your code. It supports the SQL Server infrastructure. |
| Microsoft.SqlServer.Management.Sdk.Sfc.Metadata | The Microsoft.SqlServer.Management.Sdk.Sfc.Metadata namespace contains types that are used to describe the classes in a SQL Server object model. Do not reference this member directly in your code. It supports the SQL Server infrastructure. |
| Microsoft.SqlServer.Management.ServerInformation | The Microsoft.SqlServer.Management.ServerInformation namespace contains classes that provide information about an instance of the SQL Server Database Engine. |
| Microsoft.SqlServer.Management.Smo | The Microsoft.SqlServer.Management.Smo namespace contains classes that represent the core SQL Server Database Engine objects. These include instances, databases, tables, stored procedures, and views. |
| Microsoft.SqlServer.Management.Smo.Agent | The Microsoft.SqlServer.Management.Smo.Agent namespace contains classes that represent the SQL Server Agent. |
| Microsoft.SqlServer.Management.Smo.Broker | The Microsoft.SqlServer.Management.Smo.Broker namespace contains classes that represent the Service Broker items that you can manage by using SQL Server Management Objects. |
| Microsoft.SqlServer.Management.Smo.Mail | The Microsoft.SqlServer.Management.Smo.Mail namespace contains classes that represent the Microsoft SQL Server Database Mail service. |
| Microsoft.SqlServer.Management.Smo.RegisteredServers | The Microsoft.SqlServer.Management.Smo.RegisteredServers namespace contains classes that represent the SQL Server Registered Servers service. Many of these classes are obsolete. Instead, you should use the classes in Microsoft.SqlServer.Management.RegisteredServers. |
| Microsoft.SqlServer.Management.Smo.RegSvrEnum | The Microsoft.SqlServer.Management.Smo.RegSvr namespace contains classes that represent the SQL Server Registered Server service. |
| Microsoft.SqlServer.Management.Smo.Wmi | The Microsoft.SqlServer.Management.Smo.Wmi namespace contains classes that provide programmatic access to the Windows Management Instrumentation (WMI) from an SMO application. |
| Microsoft.SqlServer.Management.SmoMetadataProvider | The Microsoft.SqlServer.Management.SmoMetadataProvider namespace contains classes which allow you to define and retrieve server metadata objects using the SMO layer. |
| Microsoft.SqlServer.Management.TaskForms | Forms a base class for SQL Server Management Studio forms. |
| Microsoft.SqlServer.Management.Trace | The Microsoft.SqlServer.Management.Trace namespace contains the SQL Server Trace and Replay objects. |
| Microsoft.SqlServer.Management.Utility | The Microsoft.SqlServer.Management.Utility namespace contains classes that represent the SQL Server Utility objects. |
| Microsoft.SqlServer.Management.XEvent | The common object model for creating and using SQL Server Extended Events in client and server components of SQL Server. The Extended Events infrastructure supports the correlation of data from SQL Server events. Under certain circumstances, the infrastructure can also be used to correlated data from the operating system and database applications. |
| Microsoft.SqlServer.XEvent.Linq | Contains classes related to reading SQL Server Extended Events files and streaming data. |