Getting Started in Visual C# .NET
Visual 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.
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 2008, the SMO assemblies are located in the C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\ folder.