未生成 BCP 输出文件
BCP output file not getting generated
我在 2012 年的 ssms 查询中 运行。
exec master.dbo.xp_cmdshell 'bcp uctconfiguration.dbo.requirement out D:\requirement.txt -w -T -S "servername"'
下面是日志
NULL Starting copy... SQLState = S1000, NativeError = 0 Error =
[Microsoft][SQL Server Native Client 11.0]Warning: BCP import with a
format file will convert empty strings in delimited columns to NULL.
1000 rows successfully bulk-copied to host-file. Total received: 1000
1000 rows successfully bulk-copied to host-file. Total received: 2000
1000 rows successfully bulk-copied to host-file. Total received: 3000
NULL 3148 rows copied. Network packet size (bytes): 4096 Clock Time
(ms.) Total : 297 Average : (10599.33 rows per sec.) NULL
当我转到 BCP 命令中指定的位置时,数据正在复制到 file.But,我找不到输出文件
当 xp_cmdshell
路径中的 运行 命令相对于服务器时
我在 2012 年的 ssms 查询中 运行。
exec master.dbo.xp_cmdshell 'bcp uctconfiguration.dbo.requirement out D:\requirement.txt -w -T -S "servername"'
下面是日志
NULL Starting copy... SQLState = S1000, NativeError = 0 Error = [Microsoft][SQL Server Native Client 11.0]Warning: BCP import with a format file will convert empty strings in delimited columns to NULL. 1000 rows successfully bulk-copied to host-file. Total received: 1000 1000 rows successfully bulk-copied to host-file. Total received: 2000 1000 rows successfully bulk-copied to host-file. Total received: 3000 NULL 3148 rows copied. Network packet size (bytes): 4096 Clock Time (ms.) Total : 297 Average : (10599.33 rows per sec.) NULL
当我转到 BCP 命令中指定的位置时,数据正在复制到 file.But,我找不到输出文件
当 xp_cmdshell
路径中的 运行 命令相对于服务器时