Greetings,
I am hesitantly considering use of a non-Pass-Through query to bulk populate SQL Server tables. All other areas of BE DB SQL access are via Stored Procedures (SP's).
To publish records from Access to SQL Server, presently I fire an INSERT SP for each record to be populated to SQL Server.
If I were to change the design, I could use a Linked Table to SQL Server, then perform a SELECT / INSERT query.
1) Will the SELECT / INSERT query make a significant performance improvement?
2) Data in the production ERP system which is the source - downloaded into Access via nested DAO.QueryDef objects - does not have uniqueness constraints upon it. I have in my present INSERT SP's logic to check before INSERT, if present then do nothing, else perform the INSERT. I perform an ORDER BY in my Access query to insure that the proper row gets placed first, and subsequent rows are safe to skip.
With the Access tables having key violation data in it, and SQL Server having the keys, is there anyway to have Access ignore key violation errors, and yet successfully report other types of errors? These queries will be run in DAO.QueryDef objects.
3) Finally, I have not used Linked Table objects / non Pass-Through queries ANYWHERE in this application. Any sort of things I should be aware of that would steer me towards sticking with my present design which is "slow and steady which wins the race"?
Thank you in advance.
I am hesitantly considering use of a non-Pass-Through query to bulk populate SQL Server tables. All other areas of BE DB SQL access are via Stored Procedures (SP's).
To publish records from Access to SQL Server, presently I fire an INSERT SP for each record to be populated to SQL Server.
If I were to change the design, I could use a Linked Table to SQL Server, then perform a SELECT / INSERT query.
1) Will the SELECT / INSERT query make a significant performance improvement?
2) Data in the production ERP system which is the source - downloaded into Access via nested DAO.QueryDef objects - does not have uniqueness constraints upon it. I have in my present INSERT SP's logic to check before INSERT, if present then do nothing, else perform the INSERT. I perform an ORDER BY in my Access query to insure that the proper row gets placed first, and subsequent rows are safe to skip.
With the Access tables having key violation data in it, and SQL Server having the keys, is there anyway to have Access ignore key violation errors, and yet successfully report other types of errors? These queries will be run in DAO.QueryDef objects.
3) Finally, I have not used Linked Table objects / non Pass-Through queries ANYWHERE in this application. Any sort of things I should be aware of that would steer me towards sticking with my present design which is "slow and steady which wins the race"?
Thank you in advance.