Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Record updation problem in sql 2000

Author  Topic 

subhaoviya
Posting Yak Master

135 Posts

Posted - 2009-08-31 : 06:36:42
the deadlock error occur while am executing my procedure.

it includes the action update one table and then insertion of record from this table into another table.

when i try the begin transaction and end transaction

the updation happen but the inertion not happend .

this error only occur while trying to update more than a records at same time

how to overcome this


thanks friends

subha

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2009-08-31 : 07:06:35
Will u post your Script?

Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled

http://senthilnagore.blogspot.com/
Go to Top of Page

subhaoviya
Posting Yak Master

135 Posts

Posted - 2009-08-31 : 07:35:02
k


create procedure myproc
as
update production set startpage=@stratpage,
endpage=@endpage where productionid=@productionid

insert into Production_temp (Productionid,
Startpage,
Endpage)
select Productionid,
Startpage,
Endpage,
from Production

Go to Top of Page

bklr
Master Smack Fu Yak Hacker

1693 Posts

Posted - 2009-08-31 : 09:02:01
quote:
Originally posted by subhaoviya

k


create procedure myproc
as
update production set startpage=@stratpage,
endpage=@endpage where productionid=@productionid

insert into Production_temp (Productionid,
Startpage,
Endpage)
select Productionid,
Startpage,
Endpage,
from Production



Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-08-31 : 09:12:17
quote:
Originally posted by subhaoviya

k


create procedure myproc
as
update production set startpage=@stratpage,
endpage=@endpage where productionid=@productionid

insert into Production_temp (Productionid,
Startpage,
Endpage)
select Productionid,
Startpage,
Endpage,
from Production




Where is your BEGIN TRANSACTION and what is the meaning of END TRANSACTION. I know only COMMIT and/or ROLLBACK.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -