I have a schedule SQL2008 job to export the contents of a table to a text file each day. The job runs fine when I manually execute it, but if the schedule executes it, only 4 or 5 lines of text out of about 13000 are produced to the text file. Any ideas anyone? The job script follows: EXEC xp_cmdshell 'bcp "SELECT * FROM pesticide..krspestdata" queryout "C:tempPestproducts.txt" -T -c -r"^" -t"|"'
Software/Hardware used:
Windows 2003, SQL 2008
ASKED:
December 2, 2010 3:28 PM
UPDATED:
December 3, 2010 8:24 PM
Thank you, sir..I shall give it a try.