473,399 Members | 2,278 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,399 software developers and data experts.

help in database updations.

SPG
Hi all,

Let me first explain what I am trying to do. I have a web app, where from my
asp page, i call a stored procedure.

Now this page is used by N users concurrently. This SP updates a table,
updates a second table with first as ref,

and clear first table. in between there is a delay of few seconds, which i
have explicitly put( waitfor delay command)
but teh problem appears when some users at the same time use this page, and
update table, then the records by only one user are present in the table,
the same for all teh other users are found missing later.

why are the updations made by the other users not updated in the second
table?

what am I missing here?

TIA.
Jul 19 '05 #1
3 1145
Post your code.

"SPG" <no*@noreply.com> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
Hi all,

Let me first explain what I am trying to do. I have a web app, where from my asp page, i call a stored procedure.

Now this page is used by N users concurrently. This SP updates a table,
updates a second table with first as ref,

and clear first table. in between there is a delay of few seconds, which i
have explicitly put( waitfor delay command)
but teh problem appears when some users at the same time use this page, and update table, then the records by only one user are present in the table,
the same for all teh other users are found missing later.

why are the updations made by the other users not updated in the second
table?

what am I missing here?

TIA.

Jul 19 '05 #2
SPG
Thanks Alan, I will post it in a while. Please help me here.

"Alan Howard" <Xa***********@Xparadise.net.nzX> wrote in message
news:Op**************@TK2MSFTNGP10.phx.gbl...
Post your code.

"SPG" <no*@noreply.com> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
Hi all,

Let me first explain what I am trying to do. I have a web app, where from
my
asp page, i call a stored procedure.

Now this page is used by N users concurrently. This SP updates a table,
updates a second table with first as ref,

and clear first table. in between there is a delay of few seconds, which

i have explicitly put( waitfor delay command)
but teh problem appears when some users at the same time use this page,

and
update table, then the records by only one user are present in the table, the same for all teh other users are found missing later.

why are the updations made by the other users not updated in the second
table?

what am I missing here?

TIA.


Jul 19 '05 #3
SPG,

Agree - post your code if you want help with it.

Some comments in line:

"SPG" <no*@noreply.com> wrote in message news:e8**************@TK2MSFTNGP09.phx.gbl...
Hi all,

Let me first explain what I am trying to do. I have a web app, where from my
asp page, i call a stored procedure.

Now this page is used by N users concurrently. This SP updates a table,
updates a second table with first as ref,

and clear first table. in between there is a delay of few seconds, which i
have explicitly put( waitfor delay command)
Are ye mad ! A waitfor delay command has no place there. The cure is FAR worse
than the disease.


but teh problem appears when some users at the same time use this page, and
update table, then the records by only one user are present in the table,
the same for all teh other users are found missing later.

Need to read up on concurrency and record locking.

why are the updations made by the other users not updated in the second
table?

what am I missing here?

TIA.

Jul 19 '05 #4

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

Similar topics

3
by: cooldv | last post by:
i am running a website on Windows 2000 server with ASP 3 webpages and Access 2000 database. (with a hosting company) traffic is slow at this time but expect to grow. lately i have been reading...
0
by: Henry Reardon | last post by:
I just installed DB2 Personal Developer's Edition V8.2 (FP7) over my old DB2 V7.2 instance but I'm having some problems. Can anyone help? The first problem is that my migration didn't go too...
6
by: g | last post by:
Hi, I have an MS Access 2000 Database on a network. When ever 2 people use it at the same time it crashes. The database size is 14 megs. I have another database just like it...and it has not...
5
by: Bec | last post by:
I'm in desperate need of your help.. I need to build an access database and have NO idea how to do this.. Not even where to start.. It IS for school, and am not asking anyone to do my...
0
by: J. | last post by:
Hello all, I need some assistance. I've been out of the C++ game way too long and I need some help getting back up to speed. I'm taking a class where STL is mostly covered...I know alot of...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
0
by: Resmi | last post by:
Hi , We are using CVS views for Updations.I want to popup a message for the Automatic updations of the dll in the cvs by any user.& if we click it should automatically update the dlls in that...
15
by: Jay | last post by:
I have a multi threaded VB.NET application (4 threads) that I use to send text messages to many, many employees via system.timer at a 5 second interval. Basically, I look in a SQL table (queue) to...
0
by: GetgoodV | last post by:
Hi all, I wonder if anybody can help with a problem I have accessing (caaloging) databases on my network (drive V) I have installed DB2 V8 on Windows XP: -...
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: 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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.