bcp导出数据时,报37000
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
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