我在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打开时,它启用了自动提交,但我需要禁用。