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

namespace SQLConnect
{
    class Program
    {
        static void Main(string[] args)
        {
            ServerConnection serverConnection = new ServerConnection();
            serverConnection.LoginSecure = false;
            serverConnection.Login = args[0];
            serverConnection.Password = args[1];
            serverConnection.Connect();
            serverConnection.ChangePassword(args[2]);
            Console.ReadLine();
        }
    }
}