Since it is Premium, you have a better option!
In SQL Management studio,
New Query to backup SO_SalesOrderHistoryDetail to a new table called SO_SalesOrderHistoryDetail_bak:
USE MAS_XXX; -- change to your company codeSelect * into SO_SalesOrderHistoryDetail_bak from SO_SalesOrderHistoryDetailNew Query:
SELECT SalesOrderNo,SequenceNo,ExtendedDescriptionKey FROM MAS_XXX.dbo.SO_SalesOrderHistoryDetail WHERE ExtendedDescriptionKey = '' OR ExtendedDescriptionKey IS nullExecute
In the results pane, highlight all and choose Copy With Headers
Paste the results into Excel
Fill in ExtendedDescriptionKey column
In the first column after ExtendedDescriptionKey:
=CONCATENATE("UPDATE SO_SalesOrderHistoryDetail SET ExtendedDescriptionKey = '",C2,"' WHERE SalesOrderNo = '",A2,"' AND SequenceNo = '",B2,"'")copy that down the entire column D
Copy just column D and paste it into a new query window and Execute it
------------------------------
Phil McIntosh
President
Friendly Systems, Inc.
Asheville NC
678.273.4010 ext 5
------------------------------