我也是用 Delphi 的,现在 VB 也在用。
Adodc 只能够选择数据,不能执行插入、删除等动作。
用 ADODB.Connection 实例来 执行。例如:dim cntTemp as New ADODB.Connection
cntTemp.ConnectionString = "Driver={SQL Server};server=127.0.0.1;uid=sa;pwd=;database=Mydatabase"
cntTemp.Open
cntTemp.Execute "Delete MyTable where id=1"
cntTemp.Close