Getting Started in Visual Basic .NET

Microsoft Visual Basic .NET in one of the managed programming languages that is supported by the common runtime library in Visual Basic .NET. Many of the samples in this documentation are written in Visual Basic .NET. 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 SQL Server Management Objects (SMO) assemblies. Then, import the required namespaces so that your program can recognize the SMO types.

In SQL Server 2008 R2, the SMO assemblies are located in the C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\ folder.