Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can this update query be improved?

Status
Not open for further replies.

micang

Technical User
Aug 9, 2006
626
US
hi All,

I am running the following code:
Code:
update dcd SET dcd.gvw = dcd1.gvw
FROM dcd
INNER JOIN dcd1 ON dcd.[regmark] = dcd1.[regmark]

2 tables, each 35 million rows. Both columns [regmark] are indexed, unique.

The query has been running for almost 3 hours, does this seem correct?

Also, what are the implications if I need to stop this query?

Thanks in advance.

micanguk
 
hi Frederico,

thanks for that. the pc specs are virtually indentical. i will def. give this a go. i am not sure on the record size and will look at that once at the office.

it seems tho that this should do the trick and it's great to have some sort of reference now.

many thanks

micanguk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top