05-21-2017 05:51 PM
I want to know the efficient way to update Access 2007 table using sas. Currently I am trying to delete entire records based on a Key field and re-insert the data.
Is there a alternate way to update data if there exists a key, otherwise insert to the table. I found below thread for SQL server, want to see how this can be implemented in Access.
05-21-2017 06:00 PM
The difference here is that the is SQL Pass Through - the query is passed to the DB so it ends up using the DB SQL, not SAS SQL. Also, the work happens on the server directly which is faster.
You don't have the flexibility with Access since it's also local so you won't see the same type of improvements.
If you're connecting to the Access table, have you tried using an UPDATE or MODIFY statement instead?
05-22-2017 12:38 AM
05-22-2017 07:20 AM
Since Access is just a DB-lookalike for office purposes, I'd load the Access table into SAS, do the update there, and recreate the Access file.