Posted on 2005-09-26 12:49 简单生活 阅读(298) 评论(0) 编辑 收藏 所属分类: 原创 、数据库
表:
EXEC master..xp_cmdshell 'bcp uttemp.dbo.abc out c:\temp01.xls -c -q -S"192.168.0.157" -U"sa" -P"777"'
sql语句:
EXEC master..xp_cmdshell 'bcp "select dt from uttemp.dbo.abc" queryout c:\temp01.xls -c -q -S"192.168.0.157" -U"sa" -P"777"'
浙公网安备 33010602011771号