create proc ...
create table #temp(   )
.
.
select * from #temp
go

解决方案 »

  1.   

    只能用Delphi循环处理了
    用链接DBGrid的Query或者AdoQuery
    while not Query.Eof do
    begin
      ...  //Insert或者Update
      Query.Next;
    end;
      

  2.   

    我用的是adostoredproc,我试过了,错误提示:
    “忽略了数据库mingcheng ,将引用tempdb中的内容“
      

  3.   

    sorry,我没用过adostoredproc  :(
      

  4.   

    这个问题有那么难吗,由于dbgrid跟临时表关联着,因此好像只能由dbgrid想办法,我不知道怎样标识dbgrid的行,因为我想对dbgrid的多行逐行处理,将所有修改过的数据写进数据库,大家帮忙up一下啦