Exemplo n.º 1
0
        public static SqlConnection hamketnoisql()
        {
            CauHinhServerBE server     = new CauHinhServerBE();
            CauHinhServerBL serverxuly = new CauHinhServerBL();

            server = serverxuly.docdulieu(Environment.CurrentDirectory + "/CauHinhServer.xml");
            return(new SqlConnection("server=" + server.Namer1 + ";database=" + server.Data1 + ";user id=" + server.User1 + ";password="******""));
        }