yinble

导航

 

2013年5月9日

摘要: 采用bcp工具导出:打开MSSM新建查询,输入exec master..xp_cmdshell 'bcp " select * from WKDB.dbo.customer" queryout e:\temp.xls -c -U "sa" -P "system123456"'其中WKDB.dbo.customer依次为数据库名,dbo为固定的数据库表前缀,customer为表名;e:\temp.xls为保存路径,当盘符为c:时有提示“unable to open bcp host-data file“,估计是权限的问题 阅读全文
posted @ 2013-05-09 15:07 yinble 阅读(458) 评论(0) 推荐(0) 编辑