这里使用一个ADOTable来连接数据表,<br>ADOTable1NewFile是一个sql server image字段, <br>可以用来保存exe文件,<br>delphi中声明为blob类型字段<br> ADOTable1NewFile: TBlobField;<br>保存:<br> if OpenDialog1.Execute then<br> ADOTable1NewFile.LoadFromFile(OpenDialog1.filename);<br>恢复:<br> if SaveDialog1.Execute then<br> ADOTable1NewFile.SaveToFile(SaveDialog1.filename);<br>运行:<br>ShellExecute(handle, 'open', pchar(SaveDialog1.filename), '','', SW_SHOWNORMAL)