| title | Getting Started in Visual C# .NET | ||
|---|---|---|---|
| description | SMO Programming - Getting Started in Visual C# .NET | ||
| author | markingmyname | ||
| ms.author | maghan | ||
| ms.date | 08/02/2016 | ||
| ms.service | sql | ||
| ms.topic | quickstart | ||
| ms.custom |
|
||
| helpviewer_keywords |
|
||
| monikerRange | =azuresqldb-current || =azure-sqldw-latest || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb |
[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance Synapse Analytics FabricSQLDB]
[!INCLUDEc-sharp] .NET is one of the managed programming languages that are supported by the common language runtime (CLR) in [!INCLUDEvsprvs] .NET. Many For more information about the C# language, see the [!INCLUDEvsprvs] .NET documentation. You can use [!INCLUDEvsprvs2005] and [!INCLUDEvsprvs2008] to develop SMO applications.
After you have started the [!INCLUDEvsprvs] project, you must add references to the SMO assemblies. You then import the required namespaces so that your program can recognize the SMO types.
In [!INCLUDE sssql22-md], the SMO assemblies are located in the C:\Program Files\Microsoft SQL Server\160\SDK\Assemblies\ folder.