using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Management.Smo;
using Microsoft.SqlServer.Management.Nmo;
namespace NotSvsInst
{
    class Program
    {
        static void Main(string[] args)
        {
            Server server = new Server();
            InstanceCollection col = server.NotificationServices.Instances;
            foreach (Instance i in col)
            {
                Console.WriteLine(i.Name);
            }
        }
    }
}
