Not sure if this is the right forum but I am having issues with BCP.exe.
My out command is copying out 4 rows to a data file but my in command is only writing 2 of those rows to the database. Also there are no errors in the log:
C:\Program Files\Microsoft SQL Server\110\Tools\Binn>bcp.exe "SELECT (test_date
) FROM archive_test at1 WHERE at1.test_date <= CONVERT(VARCHAR(10), DATEADD(Day,
( -1 ),GETDATE()), 120)" queryout Z:\bcp_test\bcp_data.dat -N -T -d "drm" -SBBS900
Starting copy...
4 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total : 16 Average : (250.00 rows per sec.)
C:\Program Files\Microsoft SQL Server\110\Tools\Binn>bcp.exe drf.dbo.archive_tes
t_archived in Z:\bcp_test\bcp_data.dat -N -T -SBBS900
Starting copy...
2 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total : 15 Average : (133.33 rows per sec.)
C:\Program Files\Microsoft SQL Server\110\Tools\Binn>