修复mssql安装时候报错

This commit is contained in:
2020-05-20 19:04:06 +08:00
parent 64b017c1da
commit 4d658ca4ab
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -152,6 +152,11 @@ namespace COMCMS.Web.Controllers
return Json(tip);
}
string fullsql = System.IO.File.ReadAllText(sqlFullPath);
//如果是mssql 需要替换一下 GO不能在程序中直接执行
if (sqltype == "mssql")
{
fullsql = fullsql.Replace("GO", ";");
}
Admin.FindAll(fullsql);//执行