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

namespace ServerObjects
{
    class Program
    {
        static void Main(string[] args)
        {
            Server server = new Server("CANOPUS5");
            Configuration config = server.Configuration;
            ConfigProperty defaultLanguage = config.DefaultLanguage;
            Console.WriteLine(defaultLanguage.ConfigValue);
        }
    }
}
