SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


BCP quits


BCP quits

Author
Message
SQL_Surfer
SQL_Surfer
Say Hey Kid
Say Hey Kid (675 reputation)Say Hey Kid (675 reputation)Say Hey Kid (675 reputation)Say Hey Kid (675 reputation)Say Hey Kid (675 reputation)Say Hey Kid (675 reputation)Say Hey Kid (675 reputation)Say Hey Kid (675 reputation)

Group: General Forum Members
Points: 675 Visits: 1086
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.
MyDoggieJessie
MyDoggieJessie
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6762 Visits: 7394
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" ;-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search