Section 9.2. Creating an SMO Project in Visual Studio .NET


9.2. Creating an SMO Project in Visual Studio .NET

This example shows you how to build a simple C# SMO Console application using Visual Studio 2005. Follow these steps:

  1. Select File New Project from the Visual Studio 2005 main menu.

  2. Enter a name for the project and specify the location in which to save the project. Click OK.

  3. Right-click References in the Solution Explorer window. Select Add Reference from the context menu.

  4. In the Add Reference dialog box, add a reference to the Microsoft.SqlServer.ConnectionInfo.dll and Microsoft.SqlServer.Smo.dll assemblies.

  5. Click OK to close the dialog box and add the references.

  6. In the Solution Explorer window, right-click the file Program.cs. Select View Code from the context menu.



  7. Programming SQL Server 2005
    Programming SQL Server 2005
    ISBN: 0596004796
    EAN: 2147483647
    Year: 2007
    Pages: 147
    Authors: Bill Hamilton

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net