Szilárd Kotta
Szilárd Kotta

Reputation: 86

Optimal way to use Database.Execute method from VBA against MSSQL linked through ODBC

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.

Database.Execute method (DAO)

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

Answers (1)

Cahaba Data
Cahaba Data

Reputation: 622

what you use now is fine...have used myself in very large apps with SQL Server in the back end....

Upvotes: 0

Related Questions