?
Solved

SqlBulkCopy Timeout only on first attempt

Posted on 2008-10-21
3
Medium Priority
?
305 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

770 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