Click here to Skip to main content
15,918,889 members
Home / Discussions / Database
   

Database

 
QuestionRe: Cascading referential integrity. Pin
CHill6023-Dec-15 23:15
mveCHill6023-Dec-15 23:15 
AnswerRe: Cascading referential integrity. Pin
Eddy Vluggen24-Dec-15 1:25
professionalEddy Vluggen24-Dec-15 1:25 
QuestionUnusual Ways To Make Quick Money Pin
Member 1222215021-Dec-15 20:46
Member 1222215021-Dec-15 20:46 
Questionplsql related issue Pin
Member 1191972221-Dec-15 0:34
Member 1191972221-Dec-15 0:34 
QuestionSubqueries Pin
Member 1116162519-Dec-15 17:13
Member 1116162519-Dec-15 17:13 
AnswerRe: Subqueries Pin
Mycroft Holmes20-Dec-15 11:58
professionalMycroft Holmes20-Dec-15 11:58 
QuestionRe: Subqueries Pin
Richard Andrew x6420-Dec-15 15:02
professionalRichard Andrew x6420-Dec-15 15:02 
AnswerRe: Subqueries Pin
Wonde Tadesse20-Dec-15 15:28
professionalWonde Tadesse20-Dec-15 15:28 
AnswerRe: Subqueries Pin
Mycroft Holmes20-Dec-15 19:15
professionalMycroft Holmes20-Dec-15 19:15 
QuestionSynchronising number of disconnected databases to a central DB. Pin
srinandan..14-Dec-15 17:45
srinandan..14-Dec-15 17:45 
AnswerRe: Synchronising number of disconnected databases to a central DB. Pin
Mycroft Holmes14-Dec-15 18:52
professionalMycroft Holmes14-Dec-15 18:52 
GeneralRe: Synchronising number of disconnected databases to a central DB. Pin
srinandan..14-Dec-15 22:20
srinandan..14-Dec-15 22:20 
GeneralRe: Synchronising number of disconnected databases to a central DB. Pin
Mycroft Holmes15-Dec-15 11:44
professionalMycroft Holmes15-Dec-15 11:44 
GeneralRe: Synchronising number of disconnected databases to a central DB. Pin
Eddy Vluggen15-Dec-15 11:53
professionalEddy Vluggen15-Dec-15 11:53 
QuestionSQL Server deadlocks Pin
Member 1115415113-Dec-15 6:42
Member 1115415113-Dec-15 6:42 
GeneralRe: SQL Server deadlocks Pin
Kornfeld Eliyahu Peter13-Dec-15 7:17
professionalKornfeld Eliyahu Peter13-Dec-15 7:17 
GeneralRe: SQL Server deadlocks Pin
Member 1115415113-Dec-15 19:41
Member 1115415113-Dec-15 19:41 
GeneralRe: SQL Server deadlocks Pin
Kornfeld Eliyahu Peter13-Dec-15 20:23
professionalKornfeld Eliyahu Peter13-Dec-15 20:23 
GeneralRe: SQL Server deadlocks Pin
Member 1115415113-Dec-15 20:36
Member 1115415113-Dec-15 20:36 
GeneralRe: SQL Server deadlocks Pin
Member 1115415114-Dec-15 0:00
Member 1115415114-Dec-15 0:00 
SuggestionRe: SQL Server deadlocks Pin
Richard Deeming14-Dec-15 2:50
mveRichard Deeming14-Dec-15 2:50 
GeneralRe: SQL Server deadlocks Pin
Member 1115415116-Dec-15 2:28
Member 1115415116-Dec-15 2:28 
The answer to my question was given to me by someone from Microsoft.
The reason why this deadlock happens is that the optimiser is choosing the second index for this SQL:
Update anyTable set anyColumn = anyColumn mak
So, it puts a lock in order to do the update and then SQL server is putting an exclusive lock to the primary key for the update and release the first lock of the second index.
At this time the second process is putting a lock for the second index and waits for the 1st process to finish in order to get an exclusive lock for the primary key.
The 1st process now is trying to reupdate the same table and to put a lock for the second index but this is already locked by the 2nd process (who waits the 1st).
So, the deadlock is inevitable.
Questionneed to consult about project discussion Pin
divinity technologies10-Dec-15 22:14
divinity technologies10-Dec-15 22:14 
AnswerRe: need to consult about project discussion Pin
Mycroft Holmes11-Dec-15 1:26
professionalMycroft Holmes11-Dec-15 1:26 
QuestionCreating Access database with VB6 Pin
Member 121949778-Dec-15 18:05
Member 121949778-Dec-15 18:05 

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.