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.
Author |
Topic |
cbeganesh
Posting Yak Master
105 Posts |
Posted - 2009-04-21 : 12:38:37
|
i wanted to know whether having index on the table will imrpove the performance on update statement.Table A has last name, first name and table B has Name columni want to mark tableA where ever there is match on namefor exampleupdate tableAset mark = 1from tableA A, tableB Bwhere a.lastname = b.nameif we have index on lastname in tableA, can the performance be improved or it wont have any effect |
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2009-04-21 : 12:44:38
|
It would probably help. Try it and look at the query plan to see if it's used.Might want toand A.mark <> 1if some are already 1. Would want to include mark in the index if this is the case probably.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
|
|
|
|
|