我试图在vb.net应用程序来执行此更新查询:vb.net SQL更新查询无法完成
SQL = "UPDATE billing_calldata SET status = 'c', customer = '" & customer_sequence & "', description = '" & description & "', customer_cost = '" & customer_cost & "', customer_ac = '" & customer_ac & "', customer_sc = '" & customer_sc & "', reseller_cost = '" & reseller_cost & "', reseller_ac = '" & reseller_ac & "', reseller_sc = '" & reseller_sc & "' WHERE sequence = '" & sequence & "';"
,但其采取的年龄,甚至没有完成。
在ExecuteNonQuery()
的说法:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
这可能是导致它不完整?
我抄查询(正确的值),并试图直接大约需要49秒的服务器上运行(但实际完成)
我已经在表中添加一个索引我sequence
列
您是否知道,如果客户说'Ziggy's Hardware',那么以这种方式创建SQL会崩溃?而且它强制这些成本项目串?使用SQL参数 – Plutonix
你对换行符有什么作用? –
@Plutonix客户列只有一个整数,所以永远不会有任何''' – charlie