* cursor curTab holds als the files to update lcConn = "DRIVER=SQL Server;SERVER=(local);APP=Microsoft Visual FoxPro;WSID=DELLI;DATABASE=testdb;Trusted_Connection=Yes" lnConnHandle = SQLSTRINGCONNECT(lcConn) SCAN lcSql = "alter table " + RTRIM(Table_name) + " Alter COLUMN " + RTRIM(field_name) + " uniqueidentifier" lnRes = SQLEXEC(lnConnHandle, lcSql) IF lnRes != 1 WAIT WINDOW "Error with table " + RTRIM(table_name) ENDIF ENDSCANUsing the wizard directly would be much more elegant. Any ideas how to achieve this?