Can somebody tell me how I can convert/write the below SQL script in a Transact SQL script so I can use the Windows task scheduler to automatically run the below SQL script from a batch file every so often? (It copies the matrix attribute to the Item subdescription fields, since MS broke this functionality with their 2.0 upgrade and is STILL working on a solution for this problem):
update item set subdescription1 = b.detail1 from item a, itemclasscomponent b where ((a.id = b.itemid) and (subdescription1 b.detail1))
update item set subdescription2 = b.detail2 from item a, itemclasscomponent b where ((a.id = b.itemid) and (subdescription2 b.detail2))
update item set subdescription3 = b.detail3 from item a, itemclasscomponent b where ((a.id = b.itemid) and (subdescription3 b.detail3))