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

namespace ImpersonateConnect
{
    class Program
    {
        static void Main(string[] args)
        {
            ServerConnection serverConnection = new ServerConnection();
            serverConnection.ConnectAsUser = true;
            serverConnection.ConnectAsUserName = args[0];
            serverConnection.ConnectAsUserPassword = args[1];
            serverConnection.Connect();
            Console.ReadLine();
        }
    }
}
