不好意思先放下,解决了就撤下去我在利用DTS导入SQL时,程序不出现错误,但是没有将需要的数据导入到sql中,大家帮我看看:代码如下:Button代码: string strdespath="bsee"; string strsourcepath ="c:\\File\\abc.XLS"; string tablename="OTHER_MainPTJob"; string strsql="select id from [bsee].[dbo].[OTHER_MainPTJob]"; AppExportData tryclass=new AppExportData(strsourcepath,strdespath,tablename,strsql); tryclass.ExportData(); 导入类: public class AppExportData } 数据库名“bsee”,表名:OTHER_MainPTJob,表内只有一个字段:id 相关文章: 2021-09-16 2021-07-17 2021-11-21 2021-12-17 2021-10-17 2022-12-23 2022-12-23