Saturday, January 3, 2009

sql server smo to list database names

sql server smo code to list the databases


  1. create a new console application in Visual Studio 2005
  2. Add the below references


    • Microsoft.SqlServer.Smo.dll
    • Microsoft.SqlServer.SmoEnum.dll


  3. add the below code in the code window

No comments:

Post a Comment

Featured Post

SQL Server AWS Migration BCP

stored procedure to generate BCP scritps to migrate the SQL Server database. Developed this stored procedure on my labs to simulate t...

Contributors