SMO Programming - Getting Started in Visual C# .NET
Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for