'============================================================================== ' COME MODIFICARE DATI IN/DA UN DATABASE REMOTO TRAMITE SQL '============================================================================== MODIFICARE UNA TABELLA IN UN DB REMOTO CON I DATI LOCALI '------------------------------------------------------------------------------ UPDATE my_table IN '' [;DATABASE=C:\Data.mdb;PWD=myPassword] SET myField = 'myValue' WHERE anotherField = (SELECT someField FROM diffTable WHERE criteriaField = 100); Dove: [my_table] E' la Tabella REMOTA contenente il campo [myField] da Modificare [anotherField] E' il campo della Tabella REMOTA usato come Condizionante [diffTable] E' la Tabella del Database Corrente contenente il campo di confronto [someField] ed il criterio eventuale. IMPORTANTE Ovviamente la SubQuery in questo caso DEVE restituire UN SOLO record. '------------------------------------------------------------------------------ MODIFICARE UNA TABELLA LOCALE CON I DATI DI UN DB REMOTO '------------------------------------------------------------------------------ UPDATE my_table SET myField = 'myValue' WHERE anotherField = (SELECT someField FROM diffTable IN '' [;DATABASE=C:\Data.mdb;PWD=myPassword] WHERE criteriaField = 100); [my_table] E' la Tabella LOCALE contenente il campo [myField] da Modificare [anotherField] E' il campo della Tabella LOCALE usato come Condizionante [diffTable] E' la Tabella del Database REMOTO contenente il campo di confronto [someField] ed il criterio eventuale. IMPORTANTE Ovviamente la SubQuery in questo caso DEVE restituire UN SOLO record. '// ####################### Alessandro Baraldi #######################