September 8, 2005 at 9:01 am
I use the following script in a batch file to perform a bulk copy:
for /r G:\FTPServer\ADAM6Upload\Mission %%i in (*.flt) do bcp sis2_dfo..t_flt in %%i /f c:\MakeXML\post_scripts\flt.fmt /U sa /P ou812
and recently added the code /E C:\MakeXML\errorlog.err
However, when I tried to run the batch file again containing the resulting code:
for /r G:\FTPServer\ADAM6Upload\Mission %%i in (*.flt) do bcp sis2_dfo..t_flt in %%i /f c:\MakeXML\post_scripts\flt.fmt /U sa /P ou812 /E C:\MakeXML\errorlog.err
the bulk copy would not work. Then I removed the code /E C:\MakeXML\errorlog.err and the batch file and bulk copy worked fine again.
What could the problem be? I used the MSDN Library which stated that I could use the /E switch to ouput bulk copy errors to a logifile (C:\MakeXML\errorlog.err). Is there something I am doing incorrectly with the syntax?
The database and code is running on Windows Server 2003 Standard SP1, SQL Server 2000 with SP4.
Any help would be greatly appreciated!
September 8, 2005 at 9:58 am
Try a lower case 'e'.
September 8, 2005 at 10:13 am
Just to clarify a bit David's Answer:
/E means use Windows Integrated authentication
/e means specify error log file path
you are already using sql authentication
Cheers
* Noel
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply