Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

BCP quits Expand / Collapse
Posted Thursday, February 13, 2014 1:22 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, November 22, 2016 1:37 PM
Points: 388, Visits: 1,074
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.

Post #1541396
Posted Wednesday, March 5, 2014 9:19 AM

SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Tuesday, December 6, 2016 1:22 PM
Points: 4,804, Visits: 7,361
What's your default remote connection timeout set to on the server?
Please refer to the articles below, which may point you in the proper direction -

"Never argue with an idiot; They'll drag you down to their level and beat you with experience"
Post #1547877
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse