| Author |
Topic |
|
nitin1353
Constraint Violating Yak Guru
381 Posts |
Posted - 2006-04-02 : 07:51:26
|
| GurusThis problem is killing me.I am getting these deadlocks every now and then ad they are killing my systemI am actually loosing data because of these deadlocks.Does anyone have any idea how do i begin solving it.PleaseNitin |
|
|
chiragkhabaria
Master Smack Fu Yak Hacker
1907 Posts |
Posted - 2006-04-02 : 08:02:16
|
| On Deadlocks there are various articles just look in Book online.. If Debugging is the process of removing Bugs then i Guess programming should be process of Adding them. |
 |
|
|
nitin1353
Constraint Violating Yak Guru
381 Posts |
Posted - 2006-04-02 : 08:17:29
|
| Thanks for telling.i know this.any other suggestion pleaseNitin |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-04-02 : 08:24:52
|
well... first figure out where they happen.then why they happen and finnaly what you need to change so that they don't happen...give us more info like what you're doing and how do you get deadlocks...Go with the flow & have fun! Else fight the flow Blog thingie: [URL="http://weblogs.sqlteam.com/mladenp"] |
 |
|
|
chiragkhabaria
Master Smack Fu Yak Hacker
1907 Posts |
Posted - 2006-04-02 : 08:52:18
|
| Are you trying to run lots of transaction simulataneous .. what is the locktype you are using??If Debugging is the process of removing Bugs then i Guess programming should be process of Adding them. |
 |
|
|
nitin1353
Constraint Violating Yak Guru
381 Posts |
Posted - 2006-04-02 : 09:42:19
|
| We have a site running.in certain pages i am receiving this deadlock.in the page the lock type is optimistic.we have certain SPs running.now what do i change?please helpRegardsNitin |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-04-02 : 10:43:16
|
what do the sprocs do?have you tried lock hints?Go with the flow & have fun! Else fight the flow Blog thingie: [URL="http://weblogs.sqlteam.com/mladenp"] |
 |
|
|
nitin1353
Constraint Violating Yak Guru
381 Posts |
Posted - 2006-04-02 : 10:51:45
|
| hiHow can u use these lock hintsRegardsNitin |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
|
|
nitin1353
Constraint Violating Yak Guru
381 Posts |
Posted - 2006-04-02 : 10:58:57
|
| Can i set query wait with sp_configure.And what should it be.Nitin |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
|
|
nitin1353
Constraint Violating Yak Guru
381 Posts |
Posted - 2006-04-02 : 11:11:51
|
| Now how do i do that?if i identify these statements with trace on ,there are certain select statements.How do i optimize them.I meant how do i start the process.You have to guide meNitin |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
|
|
nitin1353
Constraint Violating Yak Guru
381 Posts |
Posted - 2006-04-02 : 11:35:59
|
| HICan i have your mail id?i wnt disturb you muchRegards |
 |
|
|
rockmoose
SQL Natt Alfen
3279 Posts |
Posted - 2006-04-02 : 17:05:03
|
quote: Originally posted by nitin1353 HICan i have your mail id?i wnt disturb you muchRegards
Is that;Can i have your mail id?i want disturb you muchorCan i have your mail id?i wont disturb you much You realy should try to find the root cause of the deadlocks.Optimize the queries, and keep transactions short.Maybe you are missing some indexes on the tables,find out which sprocs are causing the trouble, and optimize those in query analyzer. Also check if your client app is starting the transactions and let them hang for a long time before committing.rockmoose |
 |
|
|
LoztInSpace
Aged Yak Warrior
940 Posts |
Posted - 2006-04-04 : 20:06:16
|
| Wherever possible you should update tables in the same order in each transaction. Deadlocks are A waiting for B waiting for C waiting for A. You can remove virtually all deadlocks by doing that. Short transactions etc are fine and to be encouraged but they just narrow the window of opportunity they don't actually solve the problem. |
 |
|
|
|