begin tran


UPDATE
    d
SET d.guid = pd.guid
FROM TableToBeUpdated AS d
INNER JOIN TableToGetDataFrom AS pd ON pd.ID = d.TableToGetDataFromID
where
        pd.SomeCondition = TRUE


commit tran
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (8 + 6) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 10.04.2009
Views: 565
Item date: 03.01.2009
Views: 1434
Item date: 07.03.2009
Views: 1314
Item date: 17.06.2009
Views: 2446
Item date: 05.02.2009
Views: 630
Item date: 23.08.2009
Views: 1487
Item date: 25.09.2009
Views: 532
Item date: 20.07.2009
Views: 2022
Item date: 03.01.2009
Views: 1322
Item date: 26.09.2009
Views: 1143