Beispiel #1
0
        private void CheckSqlServer()
        {
            try
            {
                TMM.Service.DocService ds = new TMM.Service.DocService();
                ds.Initialize();

                int c = ds.DDocInfoBll.GetCount(null);
                toolStripStatusLabel1.Text = "SQL Server连接成功!";
                //检查马甲用户
                CheckMajiaUser();
            }
            catch
            {
                toolStripStatusLabel1.Text = "SQL Server连接失败,请检查配置文件";
            }
        }
Beispiel #2
0
        private void CheckSqlServer()
        {
            try
            {
                TMM.Service.DocService ds = new TMM.Service.DocService();
                ds.Initialize();

                int c = ds.DDocInfoBll.GetCount(null);
                toolStripStatusLabel1.Text = "SQL Server连接成功!";
                //检查马甲用户
                CheckMajiaUser();
            }
            catch
            {
                toolStripStatusLabel1.Text = "SQL Server连接失败,请检查配置文件";
            }
        }