[求助][讨论] SQL数据库数据导出
这里一段将SQL数据导出到excel文件.insert into OpenRowSet('microsoft.jet.oledb.4.0','Excel 8.0;hdr=yes;database=c:\1.xls;','select * from [Sheet2$]')(型号,厂家,数量,描述,封装,批号,单价,联系人,更新日期,备注1,备注2)
SELECT p_model AS 型号, p_company AS 厂家, p_amount AS 数量, p_description AS 描述, p_package AS 封装, p_dc AS 批号, p_price AS 单价, p_contact AS 联系人, p_updatedate AS 更新日期, p_remark1 AS 备注一,p_remark2 AS 备注二 FROM Products
在查询分析器中可以运行.
但不知道怎么样在ASP中运行他
想加到存储过程中,却会出现提示:
知道的朋友帮帮忙吧,或者你有什么方法可以把SQL数据导出来的也请说说吧~谢谢~