Sqlmanagementobjects
Sql Management Objects, an API for scripting and managing SQL Server and Azure SQL Database
Install / Use
/learn @microsoft/SqlmanagementobjectsREADME
SQL Management Objects
SQL Management Objects, or SMO, provides objects and APIs to discover, modify, and script out SQL Server entities.
Documentation
See https://docs.microsoft.com/sql/relational-databases/server-management-objects-smo/overview-smo
Usage
SMO packages on nuget.org include:
Microsoft.SqlServer.SqlManagementObjects
This package is the primary development SDK for SMO. It provides both NetFx and .Net binaries. Capabilities of the NetStandard binaries may be limited by that platform, such as the lack of WMI support.
The binaries are strong named and Authenticode signed.
Microsoft.SqlServer.SqlManagementObjects.Loc
This package has resource DLLs with localized strings corresponding to the DLLs in Microsoft.SqlServer.SqlManagementObjects.
Microsoft.SqlServer.Management.SmoMetadataProvider
SmoMetadataProvider provides completion support for TSQL language services in Azure Data Studio and the Sql Server extension for VS Code.
Versioning
The major version for each SMO release corresponds with the highest Sql Server compatibility level that version of SMO supports. For example, 140 means it supports SQL Server 2017 and below. Some features of SMO may require having a matching SQL Server version in order to work effectively, but most features are fully backward compatible.
Dependents
SMO is a integral part of the SQL Server ecosystem. A broad set of client tools, engine components, and service components rely on it extensively. The set of SMO dependents includes:
- Azure Data Studio/Sql Tools Service
- Sql Server Management Studio
- Sql Server Integration Services (SSIS)
- Sql Powershell module
- Sql Data Sync service
- Polybase
- Azure Sql Database
- Microsoft Dynamics
- Sql Server SCOM Management Pack
Contributing
Types of contributions
- Please open issues related to bugs or other deficiencies in SMO on the Issues feed of this repo
- Include SMO version where the issue was found
- Include as much of the source code to reproduce the issue as possible
- Ask for sample code for areas where you find the docs lacking
- If you are a SMO application developer, we welcome contributions to the wiki or even source code samples to illustrate effective ways to use SMO in applications.
Stuff our attorney added
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Related Skills
feishu-drive
343.1k|
things-mac
343.1kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
343.1kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
codebase-memory-mcp
1.1kHigh-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 66 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
