This is how the process set up.
I've a table that contains about 80 rows for each client.
I have a stored proc that reads client number in a cursor from this table and executes BCP command for that client (it builds and executes the dynamic sql).
Each BCP executes about 50 views and generate a flat file. So 50 files for each client.
Now, some tables are huge and it will take some longer time for some of the tables.
Here's the kicker, I have created 3 different stored procs that basically executes the same BCP command for different sets of client...This is to increase the parallelism
and reduce the overall run time of BCP process.
Occasionally, I run into issues like this. When it does that BCP quits, and some of the file(s) for the client do not get generated?
SQLState = 08001, NativeError = 0
Error = [Microsoft][SQL Native Client]Unable to complete login process due to delay in opening server connection
Any idea about this message? Is some kind of locking goes on the tables while reading the same table by 4 different processes at the same time?
Can I do nolock on those table to alleviate the issue? I am not worried about dirty read as at that point nobody would be modifying the data.
Any help on this would be greatly appreciated.