bcp导出数据时,报37000
- SQL code
Declare @sql varchar(600),@count intCreate Table ##tempTable(postID int)insert into ##tempTable select postID from dbo.Postset @sql='bcp ##tempTable out "E:\魔兽世界吧——数据\2012-3-14\Temp3.xls" -c -q -S"WHULCC-PC" -U"sa" -P"123123123"'EXEC master..xp_cmdshell @sqldrop table ##tempTable
[解决办法]
http://topic.csdn.net/u/20120317/15/343afa87-9497-46e7-8c65-5e4a0447e6ad.html?39733
[解决办法]
- SQL code
Declare @sql varchar(600),@count intCreate Table ##tempTable(postID int)insert into ##tempTable select postID from dbo.Postset @sql='bcp tempdb..##tempTable out "E:\魔兽世界吧——数据\2012-3-14\Temp3.xls" -c -q -S"WHULCC-PC" -U"sa" -P"123123123"'EXEC master..xp_cmdshell @sqldrop table ##tempTable