using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Management.Common;
using Microsoft.SqlServer.Management.Smo;

namespace URN_Ident
{
    class Program
    {
        static void Main(string[] args)
        {
            Server canopus5 = new Server("CANOPUS5");
            Database firstDatabase = canopus5.Databases[0];
            Urn firstUrn = firstDatabase.Urn;
            canopus5.ConnectionContext.Disconnect();
            Server pluto5 = new Server("PLUTO5");
            Database tryAgain = pluto5.GetSmoObject(firstUrn) as Database;
        }
    }
}
