怎么没有帐号、密码呢?试一下:
ADOCommand1.CommandText:='master..xp_cmdshell ''bcp "''''SELECT au_fname, au_lname FROM pubs..authors ORDER BY au_lname" queryout D:\authors.xls -c -S"zdh013" -U"sa" -P"密码"'''
ADOCommand1.CommandText:='master..xp_cmdshell ''bcp "''''SELECT au_fname, au_lname FROM pubs..authors ORDER BY au_lname" queryout D:\authors.xls -c -S"zdh013" -U"sa" -P"密码"'''
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货