- 博客(2)
- 资源 (3)
- 收藏
- 关注
原创 sql2excel(2)
使用xp_cmdshell组件实现.1.启用xp_cmdshell;2.编写sqlEXEC master..xp_cmdshell 'bcp [dbname].dbo.[tablename] out "c:\temp.xls " /c /S "192.168.0.123" /U "sa" -P "123456"'参考http://www.hugesky.com/
2012-07-09 13:42:47 591
原创 sql2excel
EXEC sp_configure 'show advanced options', 1GORECONFIGUREGOEXEC sp_configure 'Ad Hoc Distributed Queries', 1GORECONFIGUREGO--以上不先运行会报错;insert into OPENROWSET('MICROSOFT.JET.OLEDB.4
2012-07-06 22:34:32 496
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人