运行winsql命令行

时间:2016-08-04 13:22:39

标签: sql database db2 winsql

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

0 个答案:

没有答案