public int LoadRoots() { intErr = 0; strErr = ""; SqlClientBuilder sbMain = DBConn.GetConn(); Hashtable htPartms = new Hashtable(); Hashtable htParms = new Hashtable(); htParms.Add("@table", "devroot"); htParms.Add("@filepath", AppDomain.CurrentDomain.BaseDirectory + "rootslist.txt"); htParms.Add("@fieldbreak", DL); htParms.Add("@rowbreak", "\n"); htParms.Add("@truncate", intTruncate); sbMain.SetData("load_table", htParms, true); if (sbMain.ErrNum > 0) { intErr = sbMain.ErrNum; strErr = sbMain.ErrMes; sbMain.ConnClose(); } sbMain.ConnClose(); return(intErr); }
public void CloseConn() { ConnMain.ConnClose(); }