Hi All,
As I am manipulating huge volumes of data using VBA and SQL, the Access database I’m using (the master database) becomes prone to exceeding it’s 2gb limit. In order to solve this problem, I am trying to do most of the manipulations/calculations in an external (secondary) database, and then periodically compact and repair this secondary database. Some of the manipulations I have to do involve using numerous make table SQL queries and multiplying/adding etc large matrices of data (e.g. multiplying a 1000x50 matrix by another 1000x50 matrix). Given the nature of my task, what would be the most efficient/quickest way to connect to the secondary database and run the SQL statements/queries?
Moreover, can anyone provide an example of the syntax I would have to use with each method (ADO or DAO).
Thanks for your help.
P.S. As far as I’m aware, using DAO, I would have to use something along the following lines.
As I am manipulating huge volumes of data using VBA and SQL, the Access database I’m using (the master database) becomes prone to exceeding it’s 2gb limit. In order to solve this problem, I am trying to do most of the manipulations/calculations in an external (secondary) database, and then periodically compact and repair this secondary database. Some of the manipulations I have to do involve using numerous make table SQL queries and multiplying/adding etc large matrices of data (e.g. multiplying a 1000x50 matrix by another 1000x50 matrix). Given the nature of my task, what would be the most efficient/quickest way to connect to the secondary database and run the SQL statements/queries?
Moreover, can anyone provide an example of the syntax I would have to use with each method (ADO or DAO).
Thanks for your help.
P.S. As far as I’m aware, using DAO, I would have to use something along the following lines.
Code:
[FONT=Verdana]Dim strSecondaryDB As String[/FONT]
[FONT=Verdana]Dim strMasterDB As String[/FONT]
[FONT=Verdana]Dim strSQL As String[/FONT]
[FONT=Verdana]Dim appAccess As Access.Application[/FONT]
[FONT=Verdana]Set appAccess = CreateObject("Access.Application")[/FONT]
[FONT=Verdana]strMasterDB = CurrentDb[/FONT]
[FONT=Verdana]strSecondaryDB = "full path to secondary db"[/FONT]
[FONT=Verdana]appAccess.OpenCurrentDatabase (strSecondaryDB)[/FONT]
[FONT=Verdana]strSQL = "a make table query etc"[/FONT]
[FONT=Verdana]appAccess.DoCmd.RunSQL strSQL[/FONT]