title: "Programming Specific Tasks | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: "sql" ms.prod_service: "database-engine" ms.service: "" ms.component: "smo" ms.reviewer: "" ms.suite: "sql" ms.technology:
ms.tgt_pltfrm: "" ms.topic: "reference" helpviewer_keywords:
- "Visual Basic [SMO]"
- "Visual C# [SMO]"
- "programming [SMO]"
- "SQL Server Management Objects, programming"
- "SQL Server Management Objects, tasks"
- "SMO [SQL Server], programming"
- "SMO [SQL Server], tasks" ms.assetid: a15949ef-88d9-4205-892e-0b66588b4fcc caps.latest.revision: 32 author: "stevestein" ms.author: "sstein" manager: "craigg" ms.workload: "Inactive" monikerRange: "= azuresqldb-current || = azure-sqldw-latest || >= sql-server-2016 || = sqlallproducts-allversions"
[!INCLUDEappliesto-ss-asdb-asdw-xxx-md]
Programming-specific tasks using SMO objects include complex subjects that would only be required by programs with a specific function, such as backing up, monitoring statistics, replication, managing instance objects, and setting configuration options.
| Topic | Description |
|---|---|
| Using Linked Servers in SMO | Describes how SMO uses the xref:Microsoft.SqlServer.Management.Smo.LinkedServer object to link OLE-DB servers. |
| Configuring SQL Server in SMO | Describes how to view and modify configuration settings for the instance of [!INCLUDEssNoVersion] in SMO. |
| Using Table and Index Partitioning | Describes how to use index and table partitioning in SMO. |
| Using Filegroups and Files to Store Data | Describes how to use file groups in SMO. |
| Managing Services and Network Settings by Using WMI Provider | Describes several ways to keep track of the instance of [!INCLUDEssNoVersion] by using the xref:Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer object that represents the WMI Provider for Configuration Management. |
| Working with Database Objects | Describes how to create instance classes that represent objects on the instance of [!INCLUDEssNoVersion]. |
| Managing Users, Roles, and Logins | Describes how to use security roles in SMO. |
| Granting, Revoking, and Denying Permissions | Describes how to use the SMO to grant, revoke, and deny permissions to users or members of a role. |
| Using Encryption | Describes how to protect data using encryption in SMO. |
| Scheduling Automatic Administrative Tasks in SQL Server Agent | Describes how to use the [!INCLUDEssNoVersion] Agent to monitor, report, and schedule jobs in SMO. |
| Backing Up and Restoring Databases and Transaction Logs | Describes how to back up and restore databases and transaction logs in SMO. |
| Scripting | Describes how to script objects and discover dependencies between objects in SMO. |
| Transferring Data | Describes how to transfer data in SMO. |
| Using Database Mail | Describes how SMO makes use of e-mail services. |
| Managing Service Broker | Describes how to set up Service Broker using SMO. |
| Using XML Schemas | Describes how to use the XML data type in SMO. |
| Using Synonyms | Describes how to create synonyms in SMO. |
| Using Messages | Describes how to use system messages, and how to define your own user-defined messages. |
| Implementing Full-Text Search | Describes how to implement full-text search catalogs and indexes in SMO. |
| Implementing Endpoints | Describes how to create endpoints to handle payloads for Database Mirroring, SOAP requests, and Service Broker. |
| Creating and Updating Statistics | Describes how to set up and monitor statistics on a database in SMO. |
| Tracing and Replaying Events | Describes how to use the Trace and Replay objects in SMO to trace and replay events. |