0

I have this code in c#:

 string parameters = "-cDriver={IBM DB2 ODBC DRIVER};Database=" + txtDb.Text + ";hostname=" + txtIp.Text + ";port=" + txtPort.Text + ";protocol=TCPIP;uid=" + txtUid.Text + ";pwd=" + txtPws.Text + "";

 Process myProcess = new Process();
 myProcess.StartInfo.UseShellExecute = false;
 myProcess.StartInfo.FileName = "\"C:\\Program Files (x86)\\WinSQL\\Winsql.exe\" \"" + parameters + "\"";
 myProcess.StartInfo.CreateNoWindow = true;
 myProcess.Start();

When the WinSql is open it is with autocommit enabled, however i need to disable.

Roberto Pegoraro
  • 1,313
  • 2
  • 16
  • 31

0 Answers0