Click here to Skip to main content
15,912,977 members
Home / Discussions / Database
   

Database

 
GeneralRe: MSDE Deployment Pin
betterc14-Apr-04 13:51
betterc14-Apr-04 13:51 
GeneralRe: MSDE Deployment Pin
Sarvesvara (BVKS) Dasa14-Apr-04 18:45
Sarvesvara (BVKS) Dasa14-Apr-04 18:45 
GeneralADOX & ADO Pin
Shenthil7-Apr-04 19:18
Shenthil7-Apr-04 19:18 
GeneralRe: ADOX & ADO Pin
Steve S8-Apr-04 1:08
Steve S8-Apr-04 1:08 
GeneralSelect SQL String Pin
Nguyen Vu Cuong7-Apr-04 15:50
Nguyen Vu Cuong7-Apr-04 15:50 
GeneralRe: Select SQL String Pin
Steven Campbell13-Apr-04 9:17
Steven Campbell13-Apr-04 9:17 
GeneralRe: Select SQL String Pin
Nguyen Vu Cuong13-Apr-04 15:30
Nguyen Vu Cuong13-Apr-04 15:30 
GeneralRow lock versus Page lock in SQL 2000. Pin
mittalpa7-Apr-04 8:32
mittalpa7-Apr-04 8:32 
Hi We are facing an acute situation in our web-application. Technology is ASP.NEt/VB.NET, SQL Server 2000.

Consider a scenario in which User 1 is clicking on a button which calls a SQL stored procedure. This procedure selects Group A of records of Database Page1.

At the same time if User 2 also clicks the same button which calls same SQL stored procedure. This procedure selects Group B of records of Database Page1.

So, its the same Page1 but different sets of records. At this moment, both the calls have shared locked on the Page1 inside the procedure.

Now, in call 1, inside the procedure after selecting Group A of records, the next statement is and update to those records. As soon as update statement executes, SQL Server throws a deadlock exception as follows :

Transaction (Process ID 78) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction

We are able to understand why its happening. Its because, Group A and Group B of records are on the same Page1. But both the users have shared lock on the Page1. So, no one gets the exclusive lock in records for update, even though, the records are different.

How can I resolve this issue? How can I get lock on wanted rows instead of entire page?

Please advice. Thanks a bunch.

Pankaj

Follow your goals, Means will follow you ---Gandhi---
GeneralRe: Row lock versus Page lock in SQL 2000. Pin
Mike Dimmick8-Apr-04 2:32
Mike Dimmick8-Apr-04 2:32 
GeneralRe: Row lock versus Page lock in SQL 2000. Pin
-Dr_X-15-Apr-04 16:51
-Dr_X-15-Apr-04 16:51 
GeneralGrrrr -- Oracle OLE DB Driver Pin
Steve S7-Apr-04 5:27
Steve S7-Apr-04 5:27 
GeneralRe: Grrrr -- Oracle OLE DB Driver Pin
RichardGrimmer19-Apr-04 5:19
RichardGrimmer19-Apr-04 5:19 
GeneralDefault field value Pin
Shenthil7-Apr-04 1:47
Shenthil7-Apr-04 1:47 
GeneralCreate a Database Softwre Pin
Ajit Jagannath6-Apr-04 5:27
Ajit Jagannath6-Apr-04 5:27 
GeneralRe: Create a Database Softwre Pin
Hesham Amin6-Apr-04 21:35
Hesham Amin6-Apr-04 21:35 
GeneralDAO Access and system.mdw Pin
cr976-Apr-04 3:56
cr976-Apr-04 3:56 
GeneralRe: DAO Access and system.mdw Pin
Mike Ellison6-Apr-04 5:45
Mike Ellison6-Apr-04 5:45 
GeneralRe: DAO Access and system.mdw Pin
cr976-Apr-04 21:47
cr976-Apr-04 21:47 
GeneralRe: DAO Access and system.mdw Pin
Mike Ellison7-Apr-04 5:28
Mike Ellison7-Apr-04 5:28 
GeneralRe: DAO Access and system.mdw Pin
cr977-Apr-04 21:15
cr977-Apr-04 21:15 
GeneralMultiple table select queries in mySQL Pin
docdeath6-Apr-04 2:38
docdeath6-Apr-04 2:38 
QuestionHow to join on multiple records? Pin
matthias s.6-Apr-04 1:27
matthias s.6-Apr-04 1:27 
AnswerRe: How to join on multiple records? Pin
Mike Dimmick6-Apr-04 1:42
Mike Dimmick6-Apr-04 1:42 
GeneralRe: How to join on multiple records? Pin
matthias s.6-Apr-04 2:05
matthias s.6-Apr-04 2:05 
AnswerRe: How to join on multiple records? Pin
Hesham Amin6-Apr-04 1:49
Hesham Amin6-Apr-04 1:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.