Hi All,
I want to run a Command-Line function 'bcp' (It comes with SQLServer as a Bulk Copy Program), and it will only run from within dos.
I have been testing using the code :
It should open cmd promt and run the command, but the dos window just flashes open and nothing is executed..,.?? (I have copied the text to the Command Promt and it works fine, so there is no problem with the command.
Is there a way I can run the bcp.exe from within Access, either through the Command line or directly within VBA including all the needed parameters..
Thank in advance.
Derick
I want to run a Command-Line function 'bcp' (It comes with SQLServer as a Bulk Copy Program), and it will only run from within dos.
I have been testing using the code :
Code:
Call Shell bcp 'ServerName'dbo.'TableName' 'OutputName' -e c:\errors.txt -U -P -S 'ServerName' -f MosaixDownload.fmt
It should open cmd promt and run the command, but the dos window just flashes open and nothing is executed..,.?? (I have copied the text to the Command Promt and it works fine, so there is no problem with the command.
Is there a way I can run the bcp.exe from within Access, either through the Command line or directly within VBA including all the needed parameters..
Thank in advance.
Derick