摘要: 1、Excel数据导入到数据库中: //该方法实现从Excel中导出数据到DataSet中,其中filepath为Excel文件的绝对路径,sheetname为表示那个Excel表; public DataSet ExcelDataSource( string filepath , string sheetname ) ...{ strin... 阅读全文
posted @ 2008-10-17 16:38 快乐 阅读(319) 评论(0) 推荐(0) 编辑
摘要: Asp.Net将Excel数据导入Sql Server数据库的的例子,是调用存储过程的,大家分享. 前言:cmd.CommandText="Proc_Address";这句话是调用存储过程"Proc_Address" 该存储过程代码为: CREATE Proc Proc_Address @CardNo char(20),@ToAddress char(50),@CCAddress char(5... 阅读全文
posted @ 2008-10-17 16:13 快乐 阅读(1103) 评论(1) 推荐(1) 编辑