Link to home
Start Free TrialLog in
Avatar of polynominal
polynominal

asked on

Lock Outs

I developed two stored procedures on Friday for two seperate Crystal Reports, every time I run them I get a message saying that I am deadlock victime, error 4001, failed to open a rowset. This does not happen for any other stored procedures, only 2 I wrote within an hour of each other. Is there any I can do about this or should I delete them and rewrite them?
Avatar of Jan Franek
Jan Franek
Flag of Czechia image

If you can wait with second report until the first one finishes, thet will be no deadlock. But if you must run these reports simultaneously, you will probably have to redesign your procedures. There's a simple rule - access tables in the same order - tis way you can get locks, but you will probably avoid deadlocks.
ASKER CERTIFIED SOLUTION
Avatar of xenon_je
xenon_je

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of polynominal
polynominal

ASKER

Hi, Thanks for the answers

I am not running the two reports together they are being run seperately, but still lock out individually
did you tested the nolock option? did it helped or no joy?