Reputation: 86
The Database.Execute DAO method has so many parameters and I'm not sure what would be the optimal way (fast, efficient and avoiding locks) to execute update and insert statements againts an MSSQL database from VBA code (MS Access). I'm accessing the MSSQL tables through ODBC.
Now I'm using it as follows:
CurrentDb.Execute "SQL statement comes here"
or
CurrentDb.Execute "SQL statement comes here", dbSeeChanges
I have two scenarios:
But I'm not sure if this is really the best way to use it.
Upvotes: 0
Views: 1893
Reputation: 622
what you use now is fine...have used myself in very large apps with SQL Server in the back end....
Upvotes: 0