Muokkaa

Jaa


SMO Programming - Getting Started in Visual C# .NET

Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics SQL database in Microsoft Fabric

C# .NET is one of the managed programming languages that are supported by the common language runtime (CLR) in Visual Studio .NET. Many For more information about the C# language, see the Visual Studio .NET documentation. You can use Visual Studio 2005 and Visual Studio 2008 to develop SMO applications.

References and Imports

After you have started the Visual Studio 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 SQL Server 2022 (16.x), the SMO assemblies are located in the C:\Program Files\Microsoft SQL Server\160\SDK\Assemblies\ folder.

See Also

Create a Visual C# SMO Project in Visual Studio .NET