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 |
subhaoviya
Posting Yak Master
135 Posts |
Posted - 2012-08-24 : 09:40:30
|
Hi, I tried to update some columns in a destination table from source table. actually the update needs to happen for more than 3 lakhs records. the query has executing for long time, so i cancelled the query manually.my dought is, is come of the column gets updated into destination table or non of the column gets updated?thankssubetha. |
|
nigelrivett
Master Smack Fu Yak Hacker
3385 Posts |
Posted - 2012-08-24 : 09:45:17
|
A single statement is atomic. Either it will complete or fail.That is unless you have something odd implemented.==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy. |
|
|
subhaoviya
Posting Yak Master
135 Posts |
Posted - 2012-08-24 : 09:53:17
|
thanks nigel |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-08-24 : 11:01:39
|
quote: Originally posted by subhaoviya Hi, I tried to update some columns in a destination table from source table. actually the update needs to happen for more than 3 lakhs records. the query has executing for long time, so i cancelled the query manually.my dought is, is come of the column gets updated into destination table or non of the column gets updated?thankssubetha.
if performance is a concern consider adding an index to speed up updatealso do it in batches if log is getting filled up------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|