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

Database

 
GeneralRe: Multiple queries being requested on for same table Pin
Vishnu Nath18-Sep-09 21:05
Vishnu Nath18-Sep-09 21:05 
GeneralRe: Multiple queries being requested on for same table Pin
Ashfield18-Sep-09 21:30
Ashfield18-Sep-09 21:30 
QuestionDatabase Deployment Pin
mobius11100117-Sep-09 4:30
mobius11100117-Sep-09 4:30 
AnswerRe: Database Deployment Pin
J4amieC17-Sep-09 4:51
J4amieC17-Sep-09 4:51 
AnswerScript it Pin
David Mujica17-Sep-09 5:07
David Mujica17-Sep-09 5:07 
GeneralRe: Database Deployment Pin
mobius11100117-Sep-09 5:46
mobius11100117-Sep-09 5:46 
QuestionTypes of Deadlocks in SQL Server Pin
John.L.Ponratnam17-Sep-09 4:21
John.L.Ponratnam17-Sep-09 4:21 
AnswerRe: Types of Deadlocks in SQL Server Pin
David Mujica17-Sep-09 5:02
David Mujica17-Sep-09 5:02 
I can only think of one type of deadlock, meaning that 2 or more processes are trying to get to the same set of resources. There are however many type of "Locks".

1) Shared locks
2) Exclusive locks
3) Update locks
4) Intent locks

Here is how a deadlock can occur:

Process 1
Locks resource A
Looking to lock resource B

Process 2
Locks resource B
Looking to lock resource A

Classic deadlock situation. The way to avoid this is to lock the resources in the same order, this way process 1 & 2 would never be able to lock each other out. Either process 1 or proccess 2 would be granted resource A, then lock resource B and continue on.

Most database engines solve the deadlock issue by choosing a "victim" and forcing a rollback of the transaction, thus releasing the locks owned by it. Typically once the victim has been choosen, the remaining processes can continue on with their work.
AnswerRe: Types of Deadlocks in SQL Server Pin
Ashfield17-Sep-09 9:17
Ashfield17-Sep-09 9:17 
AnswerRe: Types of Deadlocks in SQL Server Pin
εїзεїзεїз17-Sep-09 13:28
εїзεїзεїз17-Sep-09 13:28 
Questioninsert Record Pin
mjawadkhatri16-Sep-09 23:46
mjawadkhatri16-Sep-09 23:46 
AnswerRe: insert Record Pin
Henry Minute17-Sep-09 3:22
Henry Minute17-Sep-09 3:22 
QuestionSending Email using SQL Job Pin
Payal_e_m16-Sep-09 14:22
Payal_e_m16-Sep-09 14:22 
AnswerRe: Sending Email using SQL Job Pin
ElectricLlama17-Sep-09 23:41
ElectricLlama17-Sep-09 23:41 
GeneralRe: Sending Email using SQL Job Pin
Payal_e_m20-Sep-09 17:27
Payal_e_m20-Sep-09 17:27 
Questiondbo Trigger Pin
zeusToronto16-Sep-09 12:30
zeusToronto16-Sep-09 12:30 
AnswerRe: dbo Trigger Pin
Ashfield16-Sep-09 20:58
Ashfield16-Sep-09 20:58 
GeneralRe: dbo Trigger Pin
zeusToronto17-Sep-09 2:43
zeusToronto17-Sep-09 2:43 
GeneralRe: dbo Trigger Pin
Ashfield17-Sep-09 9:10
Ashfield17-Sep-09 9:10 
GeneralRe: dbo Trigger Pin
zeusToronto18-Sep-09 2:43
zeusToronto18-Sep-09 2:43 
GeneralRe: dbo Trigger Pin
Ashfield18-Sep-09 21:27
Ashfield18-Sep-09 21:27 
QuestionForiegn_key constraint (help needed urgently) Pin
Learner52016-Sep-09 0:50
Learner52016-Sep-09 0:50 
AnswerRe: Foriegn_key constraint (help needed urgently) Pin
εїзεїзεїз16-Sep-09 5:12
εїзεїзεїз16-Sep-09 5:12 
GeneralRe: Foriegn_key constraint (help needed urgently) Pin
Learner52016-Sep-09 5:53
Learner52016-Sep-09 5:53 
QuestionSwap column Names Pin
.NET- India 15-Sep-09 23:55
.NET- India 15-Sep-09 23:55 

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.