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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 update proc slow

Author  Topic 

skillile
Posting Yak Master

208 Posts

Posted - 2003-03-03 : 10:34:22
here is my proc that updates records from DB to DB. I need this to be fast and efficient.
Tables have about 2.5m records

My log file is growing out of control. Do I need to set batch logged or simple mode on to do this. Any suggestions.

UPDATE a
SET
a.ordernum=c.ordernum,
...

FROM table a
INNER JOIN table c ON (a.orderid=c.orderid )


thanks



slow down to move faster...

X002548
Not Just a Number

15586 Posts

Posted - 2003-03-03 : 12:51:59
What's your maint plan set up as? How many rows in c? How does c get populated? Why do you have to updated everything in c? Is loaded with new data everytime you process? How does a get the ordernum in the first place? If it's OLTP can't you add a trigger to do this? Do you have indexes on the join column? Is it Clustered?

A little more background would be useful

Let us know

Brett

8-)

Go to Top of Page
   

- Advertisement -