Esempio n. 1
0
        private void btnConnect_Click(object sender, EventArgs e)
        {
            if (conn != null)
            {
                conn.close();
            }

            //this.conn = new EntConnection(new ConnectionMSSQL2000(txtIp.Text, txtId.Text, txtPw.Text));   // MS-SQL 2000
            this.conn            = new EntConnection(new ConnectionMSSQL2008(txtIp.Text, txtId.Text, txtPw.Text)); // MS-SQL 2008
            cboSchema.DataSource = conn.getSchemaList();
            //cboTable.DataSource = conn.getTableList(cboSchema.SelectedItem.ToString());
        }
Esempio n. 2
0
        private void btnConnect_Click(object sender, EventArgs e)
        {
            if (conn != null)
            {
                conn.close();
            }

            //this.conn = new EntConnection(new ConnectionMSSQL2000(txtIp.Text, txtId.Text, txtPw.Text));   // MS-SQL 2000
            this.conn = new EntConnection(new ConnectionMSSQL2008(txtIp.Text, txtId.Text, txtPw.Text));     // MS-SQL 2008
            cboSchema.DataSource = conn.getSchemaList();
            //cboTable.DataSource = conn.getTableList(cboSchema.SelectedItem.ToString());
        }