Solved

deadlocked

Posted on 2004-09-30
5
253 Views
Last Modified: 2010-04-06
I'm getting this error:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]Your transaction (process ID #398) was deadlocked with another process and has been chosen as the deadlock victim. Rerun your transaction.
/export_to_excel.asp, line 18

I have an ASP page that goes against SQL Server 7.0.

It runs a stored proc and returns the result into the page. The page works sometimes and the other times it brings back the above error.

Also I have the feature on the page to export the result to excel and it's giving me the same problem.



0
Comment
Question by:jaze95
5 Comments
 
LVL 23

Expert Comment

by:apresto
Comment Utility
Heres a couple of little articles on it:

http://www.winnetmag.com/Article/ArticleID/14027/14027.html

http://p2p.wrox.com/archive/sql_server/2002-10/9.asp

dont know if it has anything to do with it but you werent getting any other replies so i thought id give you something to do ;o)
0
 
LVL 49

Assisted Solution

by:Roonaan
Roonaan earned 125 total points
Comment Utility
Does ASP support synchronize as Java does?

Otherwise caching could be usefull, if that is doable in your situation. This will remove some load from the export_to_excel.asp as you have stored the already generated stuff elsewhere. The change of having deadlocks on the export function should therefor be somewhat less.

-r-
0
 
LVL 2

Author Comment

by:jaze95
Comment Utility
It's happening on the page with the export to excel feature. That page isn't coming up
0
 
LVL 2

Author Comment

by:jaze95
Comment Utility
I submit some dates that run's a stored proc and returns a result to a page. On this page I have a button that will allow a user to export to excel.

0
 
LVL 34

Accepted Solution

by:
arbert earned 125 total points
Comment Utility
This is more of a SQL problem than an ASP problem...

I would suggest running SQL Profiler to determine what's causing the deadlocks...
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now