Example #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            //SqlConnection sqlConnection = new SqlConnection("user id=swright;" +
            //                                               "password=Abc123!!;" +
            //                                               "server=SQLSERVER480;" +
            //                                               "Trusted_Connection=yes;" +
            //                                               "database=UTSDB; " +
            //                                               "connection timeout=10");
            //try
            //{
            //    sqlConnection.Open();
            //    //SqlCommand mySetCommand = new SqlCommand("insert into Groups (GroupsManager, GroupsName) values ('test', 'test2');", sqlConnection);
            //    //mySetCommand.ExecuteNonQuery();

            //    SqlDataReader myReader = null;
            //    SqlCommand myGetCommand = new SqlCommand("select * from Groups", sqlConnection);
            //    myReader = myGetCommand.ExecuteReader();

            //    DataTable dt = new DataTable();
            //    dt.Load(myReader);

            //    sqlConnection.Close();
            //}
            //catch (Exception e)
            //{
            //    System.Diagnostics.Debug.Write(e.ToString());
            //}

            GetUser   t  = new GetUser();
            DataTable t2 = t.GetUTSUsers();
            string    t3 = null;
            //ServiceBase[] ServicesToRun;
            //ServicesToRun = new ServiceBase[]
            //{
            //    new Service1()
            //};
            //ServiceBase.Run(ServicesToRun);
        }