473,387 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

long time transaction

Hello,

I have run a long transaction on the DB (sql server)

For some long transaction I have got the following message :

What can I do in order to run it properly ?

Error Type:

Active Server Pages, ASP 0113 (0x80004005)

The maximum amount of time for a script to execute was exceeded. You can
change this limit by specifying a new value for the property
Server.ScriptTimeout or by changing the value in the IIS administration
tools.

Thanks :)

Nov 19 '05 #1
3 1960
HI,

Open your IIS configuration and increase the Script time out execution value.

regards

"Eitan" wrote:
Hello,

I have run a long transaction on the DB (sql server)

For some long transaction I have got the following message :

What can I do in order to run it properly ?

Error Type:

Active Server Pages, ASP 0113 (0x80004005)

The maximum amount of time for a script to execute was exceeded. You can
change this limit by specifying a new value for the property
Server.ScriptTimeout or by changing the value in the IIS administration
tools.

Thanks :)

Nov 19 '05 #2
Hello,

Besides changing the timeout,
is there something else I can do ?

Thanks :)

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:01**********************************@microsof t.com...
HI,

Open your IIS configuration and increase the Script time out execution value.
regards

"Eitan" wrote:
Hello,

I have run a long transaction on the DB (sql server)

For some long transaction I have got the following message :

What can I do in order to run it properly ?

Error Type:

Active Server Pages, ASP 0113 (0x80004005)

The maximum amount of time for a script to execute was exceeded. You can
change this limit by specifying a new value for the property
Server.ScriptTimeout or by changing the value in the IIS administration
tools.

Thanks :)

Nov 19 '05 #3
"Eitan" <no_spam_please@nospam_please.com> wrote in message
news:eL**************@TK2MSFTNGP14.phx.gbl...
Hello,

Besides changing the timeout,
is there something else I can do ?

Thanks :)

Yes. Reduce the amount of work taking place in your transaction.

It is often the case, but not always, that a great deal of effort is placed
within the boundaries of a DB transaction, where some of it can easily be
off-loaded to another operation.

I can illustrate this much better with an example. Of course, this is
purely fictional, but I hope it is instructive...

In an order system, say that your transaction needs to iterate through all
of the records associated with a specific customer and recalculate the
discounts applied to every order. For a major customer, this could take a
LONG time. In addition, it MUST be done in a single pass because, in most
existing systems, you don't have additional flags that you can use to
indicate if the work was done or not.

However, if you look at it, the majority of the time is not spent acutally
updating the database. The majority of the time is spent recalculating the
discount values, especially if you are doing that in SQL.

So, to offload this effort, I would suggest two passes on the data.
Create a table for the operation (OrderDiscountUpdate). In that table, put
three columns: RecordId (PK, FK to Orders table), NewDiscount (money), and
DiscountUpdated (boolean).
Call a SQL Insert stmt to get the list of records to modify. Create the
records in your new table. Set the "NewDiscount" value equal to the existing
discoung value and set the DiscountUpdated flag to False.

Now, in your application, you can iterate through this table, recalculating
the discounts. Update the flag as you go. This work is entirely outside of
a transaction and in fact, is quite interruptable. It can be done in a
background thread. If you do take a while, make sure you capture any new
orders that were added while you were running.

Last step: start a transaction, and issue an update statement against the
original Orders table, using the data from the OrderDiscountUpdate table.
Commit your transaction. This step is short, quick, and efficient.

The concept here is that the hard work is usually not transactional work.
You want to protect the data in the update, but you don't always need to
include all the work in the transaction.

HTH,

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: A.M. de Jong | last post by:
In the hereunder written message I talk about point in time restore. It is now based upon the fact that there are no hardware problems or what so ever. I just would like to roll back to a...
2
by: Steve Thorpe | last post by:
Hi I have have two linked SQL Servers and I am trying to get remote writes working correctly (fast). I have configured the DB link on both machines to: Point at each others DB. I have security...
2
by: OakRogbak_erPine | last post by:
My company is considering purchasing MS SQL Server to run an application on (SASIxp). I am mainly familiar with Oracle, so I was wondering how long it would take to copy a database. Basically we...
3
by: rkusenet | last post by:
Hi, I am still not very proficient in SQLServer. So apology if the question sounds basic. We have a script to clean old unwanted data. It basically deletes all rows which are more than 2...
29
by: pb648174 | last post by:
I have a very long transaction that runs on the same database that other users need to use for existing data. I don't care if they see data from the transaction before it is done and am only using...
22
by: Joseph Shraibman | last post by:
On a 7.3.4 database: explain analyse select count(*) from elog; Aggregate (cost=223764.05..223764.05 rows=1 width=0) (actual time=81372.11..81372.11 rows=1 loops=1) -> Seq Scan on elog ...
3
by: Eitan | last post by:
Hello, I have run a long transaction on the DB (sql server) For some long transaction I have got the following message : What can I do in order to run it properly ? Error Type:
18
by: Larry Herbinaux | last post by:
I'm having issues with garbage collection with my long-standing service process. If you could review and point me in the right direction it would be of great help. If there are any helpful...
5
by: aj | last post by:
SQL Server SP2 9.0.3042 64-bit I recently put my first SQL Server DB in production. In the "other" database that I use (not interested in any arguments), you can indicate the desired size of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.