Get instant live expert help with SQL
“My expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

Enter your problem description Our Experts are available now

Your message must be at least 40 characters
Select your SQL Environment:
Your message must be at least 40 characters
By submitting this form you agree to Got It's privacy policy.

SQL Server Management Objects SMO – Querychat

SQL Server Management Objects (SMO) are objects defined for developers to automate and program Microsoft Server administration tasks. SMO is one of SQL Server cross-platform scripting modules made available for users not on windows machines. These modules support power-shell and other scripting languages and can be installed with SQL server or independently as well. Option available to include SQL Server 2008 or 2012 management objects during installation or SQL Server Management objects can be downloaded separately via the “Feature Pack” option. NuGet is a Windows Package management module that is .Net core-based Microsoft SQL Server SMO DLL files for Windows, Linux, and Mac OS. SQL Server Tools Services is a set of SMO libraries used in SQL Server operation studio and can be downloaded from GitHub here:

What is SMO?

 SQL Server management objects were introduced after SQL Server 2005 (9.x) and later versions. SMO is defined term and applies to many namespaces to manage database features like Database Engine features: DB Agent, DB Engine, DB Mail, etc.

Technically speaking SMO is a .NET framework based object model that allows developers to create client-side applications and manage SQL Server objects and services. SMO works with SQL Server 2000, SQL Server 2005, SQL Server 2008, SQL Server 2008 R2 and later versions. 

Microsoft SQL Server 2005 and later version SMO includes: SQL Server 2005 management API, AMO (Analysis Management Objects), RMO(Replication Management Objects) and SQL Server Management Objects (SMO)

Microsoft SQL Server 2008 R2 Feature Pack is a collection of stand-alone packages to be run along with Microsoft SQL Server 2008 R2 release. 

Starting SQL Server 2017 the SMO DLLs are distributed in NuGet package: “Microsoft.SqlServer.SqlManagementObjects”. This is the replacement for SharedManagementObjects.msi, since DLLs are already bundled in the package, user no longer needs to install additional DLLs.

How to install SMO?

SQL server management objects (SMO) download essentially include the following steps:

  1. Installing SQLServer module 
  2. Installing SMO “Microsoft.SqlServer.SqlManagementObjects” on Nuget/OneGet *

* Nuget/OneGet is a package management module that is required for managing SMO

Features of SMO:

Microsoft SQL Server SMO is an intensive and powerful tool which can perform management tasks and automate checks via programming. SMO is developed on top of .NET Framework, in order to use SMO make sure .NET runtime for Microsoft .NET Framework version 2.0 is already installed before using the SMO objects.

microsoft sqlserver management smo scripter

Microsoft SQL Server management objects include multiple class with in-built functionality. One of the classes that helps programmers to generate a script for SMO is “Microsoft.SqlServer.Management.Smo.Scripter” class. 

What is SQL DMO?

SQL Distributed Management Objects (DMO) is a similar object model as SMO but is no longer supported in SQL Server 2012 and newer versions. If you have been using SQL-DMO most of the similar objects are available in SMO. And mapping of objects available can be found here on Microsoft page:

Instant livechat to an Expert!

Most of the time, the problem you will need to solve will be more complex than a simple method. If you want to save hours of research and frustration, try our live SQLExpert service! 

Our SQLQuerychat Experts are available 24/7 to answer any questions you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Leave a Reply

Notify of
Trusted by people who work at, Inc
Facebook, Inc
Accenture PLC
Siemens AG
The Allstate Corporation
United Parcel Service
Dell Inc