コード例 #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());
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: emflant/IBatisQueryGenerator
        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());
        }