0

我在 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();

当 WinSql 打开时,它启用了自动提交,但是我需要禁用。

4

0 回答 0