Esempio n. 1
0
 private void btnSrvTrig_Click(object sender, EventArgs e)
 {
     MultiServer.Start(1024, 1965, "Data Source=(DESCRIPTION="
                       + "(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST="
                       + txtDBAdd.Text.Trim() + ")(PORT="
                       + txtDBPort.Text.Trim() + ")))"
                       + "(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=smartsrv)));"
                       + "User Id=" + txtDBLogin.Text + ";Password="******";");
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     txtSql.Text = MultiServer.ConsultarDB("675")[0];
 }