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 2005 Forums
 SSIS and Import/Export (2005)
 update query issue.

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?

thanks
subetha.

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.
Go to Top of Page

subhaoviya
Posting Yak Master

135 Posts

Posted - 2012-08-24 : 09:53:17
thanks nigel
Go to Top of Page

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?

thanks
subetha.



if performance is a concern consider adding an index to speed up update

also do it in batches if log is getting filled up

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -