Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

BCP quits Expand / Collapse
Author
Message
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: 2 days ago @ 2:35 PM
Points: 328, Visits: 854
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


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Monday, July 14, 2014 2:06 PM
Points: 3,865, Visits: 7,130
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 -

http://social.msdn.microsoft.com/Forums/sharepoint/en-US/5d79dd2b-9237-4f65-9f68-dadb347e329a/unable-to-complete-login-process-due-to-delay-in-opening-server-connection-in-sql-server-2008

http://technet.microsoft.com/en-us/library/ms189040(v=sql.105).aspx


______________________________________________________________________________
"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