Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the DBLOG.DatabaseLogAnalyzer class.
 /// </summary>
 /// <param name="pconnectstring">The string used to open a SQL Server database.</param>
 public DatabaseLogAnalyzer(string pconnectstring)
 {
     DB = new DatabaseOperation(pconnectstring);
     DB.RefreshConnect();
 }
Esempio n. 2
0
        public int ReadPercent;       // 读取进度百分比 1-100

        /// <summary>
        /// Initializes a new instance of the DBLOG.DatabaseLogAnalyzer class.
        /// </summary>
        /// <param name="pservername">The name or network address of the instance of SQL Server to which to connect.</param>
        /// <param name="pdatabasename">The name of the database.</param>
        /// <param name="plogin">The SQL Server login account.</param>
        /// <param name="ppassword">The password for the SQL Server account logging on.</param>
        public DatabaseLogAnalyzer(string pservername, string pdatabasename, string plogin, string ppassword)
        {
            DB = new DatabaseOperation(pservername, pdatabasename, plogin, ppassword);
            DB.RefreshConnect();
        }