Solved

SqlBulkCopy Timeout only on first attempt

Posted on 2008-10-21
3
303 Views
Last Modified: 2012-05-05
I'm using SqlBulkCopy in an ASP.NET web page for uploading csv files into the database. The solution I found was pulled right off the web and works incredibly fast and slick when you've already made a connection with the database. However, we are experieincing a timeout pattern that occurs when the page is accessed for the first time and attempt to upload. After a second try the upload works lightning fast. Can anyone help me figure out what may be causing this initial timeout??? I love this upload solution and need to keep using it for other projects.
0
Comment
Question by:HangTenDesign
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Expert Comment

by:Ramuncikas
ID: 22773849
What particular error do you get? We can guess many times but at least error code and a bit of sample code would help much to point out a problem.
0
 

Accepted Solution

by:
HangTenDesign earned 0 total points
ID: 22821758
I changed the Command timeout parameter and it took care of the problem. For some reason it runs longer on first run that on second. I have a feeling SQL server keeps connections and querries cached for a time.
0
 

Author Comment

by:HangTenDesign
ID: 22822975
Ok, I just got a message stating that it can't install becasue the version I'm trying to install is incompatible with a previous version. I'm not sure why this is happening. I thought .NET can run side by side with previous versions.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question