troubleshooting Question

Is bcp asynchronous? isql fails (only) when run immediately after issuing bcp command

Avatar of David
DavidFlag for United States of America asked on
Microsoft SQL Server
3 Comments1 Solution801 ViewsLast Modified:
I have tried running a batch file which invokes first bcp to import data into a table, and then isql to process the data imported into the table.  The isql fails to do anything and there is also no error output.  But if I run the same isql command inside a different batch file a bit later, and separately from the first invocation, the processing is done correctly in that case.

Is there any possible negative interaction by running bcp then isql right after it inside a batch file, without delay in between?  If delay is needed, what is the best way to accomplish.  I have been spending hours trying to determine the cause of this problem.  I do not have easy access to error logs, since it is a shared hosting server, but probably I could get to them if that is truly important.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros