Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Help making SP deadlock-proof SQL2k5
Old 02-03-2009, 05:22 PM Help making SP deadlock-proof SQL2k5
Experienced Talker

Posts: 31
Name: Matt
Location: Veldhoven, Netherlands
Trades: 0
hi,

Please can someone tell me how to change the following SP into a Try/Catch to avoid deadlocking?

ALTER PROCEDURE [dbo].[SP_UpdateUserIPandTime](@User_ID INT,@IP nvarchar (16))
AS UPDATE dbo.TABLENAME
SET COLUMNNAME1 = GETDATE(), COLUMNNAME2 = @IP
WHERE (COLUMNNAME3 = @User_ID)

I'm tearing my hair out trying to work it out.

Thanks so much
mattblack is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Help making SP deadlock-proof SQL2k5
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07933 seconds with 12 queries