BCP quits

  • 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.

  • 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; Theyll drag you down to their level and beat you with experience

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply