Esempio n. 1
0
 private bool ConnectToDb(string dbname)
 {
     if (cbeAuth.SelectedIndex == 0)
     {
         _db = new CAMOsoft.DbUtils.MsSqlSession(true);
         _db.LoginWindowsAuth(txtServer.Text, cmbDbName.Text);
     }
     else
     {
         _db = new CAMOsoft.DbUtils.MsSqlSession(true);
         _db.LoginSQLAuth(txtServer.Text, txtUser.Text, txtPass.Text, cmbDbName.Text);
     }
     return(_db.IsLogged);
 }
Esempio n. 2
0
 public MsSqlCmd(MsSqlSession pDbSession, SqlCommand pSqlCommand)
 {
     m_DbSession = pDbSession;
     m_Command   = pSqlCommand;
 }
Esempio n. 3
0
 public MsSqlCmd(MsSqlSession pDbSession)
 {
     m_DbSession = pDbSession;
 }