按照如上方法我试了,代码如下: ADOQuery1.Close; ADOQuery1.SQL.Clear; ADOQuery1.SQL.LoadFromFile('E:\1.sql'); ADOQuery1.ExecSQL; 但是当运行到ADOQuery1.ExecSQL时出错了!错误提示是:Project Setup.exe raised exception class EOleException with message 'No value given for one or more required parameters'. Process stopped.Use step or Run to continue. 不知道是什么原因?该SQL文件我在SQL Server的查询分析器中运行过,没有任何语法错误。 还望指教,谢谢!
query1.Open;
ADOQuery1.Sql.LoadFromFile(1.sql)
ADOQuery1.sql.LoadFromFile('2.sql');
ADOQuery1.open
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.LoadFromFile('E:\1.sql');
ADOQuery1.ExecSQL;
但是当运行到ADOQuery1.ExecSQL时出错了!错误提示是:Project Setup.exe raised exception class EOleException with message 'No value given for one or more required parameters'. Process stopped.Use step or Run to continue.
不知道是什么原因?该SQL文件我在SQL Server的查询分析器中运行过,没有任何语法错误。
还望指教,谢谢!