2
我需要將記錄從Paradox-7表複製到SQL Server 2008中。我已經在SQL Server 2008中創建了一個存儲過程,並使用表類型輸入參數。使用Delphi 2010,我該如何發送一個Paradox數據庫表的記錄到這個存儲過程?這些表已經存在於SQL Server中。使用Delphi 2010在SQL Server 2008中分配表格類型輸入參數存儲過程
我想這一點,但它給有關paramater類型的錯誤:
VAImpTable.Open; // this is a BDE TTable component
// spBatchInsert is a dbExpress TSQLStoredProc component
spBatchInsert.ParamByName('@input_table').AsDataSet := VAImpTable;
try
spBatchInsert.ExecProc;
except on e: Exception do
ShowMessage(e.Message);
end;
VAImpTable.Close;
謝謝,對,一次一個記錄就可以工作,但表格很多且有些很大 - 我確定table-type sp輸入參數方法會更快,並且我們有許多客戶端具有相同的悖論數據庫佈局,所有客戶端都必須附加到單個SQL DB – TAZ 2012-01-12 13:12:26