bclothier

About Ben Clothier

This author has not yet filled in any details.
So far Ben Clothier has created 66 blog entries.

How does Access talk to ODBC data sources? Part 2

UPDATE: Added some more clarifications around the meaning of SQLExecute and how Access is handling the prepared queries. Thanks, Bob! What's Access doing when we browse and look at records in a ODBC linked table? In the second part of our ODBC tracing series, our focus will turn to the impact the re [...]

2021-12-19T23:11:10-06:00December 16th, 2021|

How does Access talk to ODBC data sources? Part 1

This is a six-part series of articles on ODBC tracing to help Access developers troubleshoot and work with Access when developing an application that uses ODBC data source(s), usually but not exclusively SQL Server. The series aims to demonstrate how to use the ODBC tracing to monitor ODBC SQL state [...]

2022-07-26T03:39:27-05:00December 15th, 2021|

Access-compatible Wide World Importers SQL Server Database

SQL Server usually comes with useful sample databases to demonstrate new features and some possible design. I usually find sample databases far more useful as a playground for developing generic components against an existing database to use in other projects. I find that using a empty or too small [...]

2021-12-06T14:39:15-06:00December 7th, 2021|

Evaluating when an expression in a query is evaluated

I've always found Itzik Ben-Gan's excellent chart on the logical SQL processing immensely helpful in reasoning about the querying performance. Even though the chart was made for SQL Server, it still is applicable to any database engine that follow SQL Standard, which also includes Access database en [...]

2022-04-19T04:00:03-05:00December 6th, 2021|

Bulk Inserts or Update for tables with Attachment fields

Since Access 2010, Access has supported Attachments data type which on the surface seems like a convenient feature for storing small images or files. However, a quick google search will usually show that they are best avoided. This all boils down to the fact that an Attachments data type is actually [...]

2021-12-01T12:41:54-06:00December 2nd, 2021|

Writing Readable Code for VBA – Try* pattern

Writing Readable Code for VBA - Try* pattern   Lately, I've been finding myself using the Try pattern more and more. I really like this pattern because it makes for much more readable code. This is especially important when programming in a mature programming language like VBA where the error h [...]

2021-06-11T04:36:17-05:00October 30th, 2020|

Ad-hoc Connection Strings and Heterogeneous Queries for MS Access

Ad-hoc Connection Strings and Heterogeneous Queries for MS Access   Heterogeneous queries is the reason why connection strings, especially ad-hoc connection string are important. In previous articles of the series, you saw how you could customize the connection parameters for connecting to Exce [...]

2021-06-11T04:39:52-05:00October 24th, 2020|

Connection String Parameters for Saved Specifications

Connection String Parameters for Saved Specifications   Access provides a second method of describing text files' schema by using system tables MSysIMEXSpecs and MSysIMEXColumns to save the specifications. In the previous article, I covered how schema.ini can be used to describe a text file's s [...]

2021-06-11T04:41:10-05:00October 23rd, 2020|

Connection String Parameters for Schema.ini

Connection String Parameters for Schema.ini   Making a schema.ini to open or link text files from Access is one of two possible methods that can be used to work with data contained in the files from Access. In the previous article, we looked at the text file's connection string parameters. We a [...]

2021-06-11T04:43:50-05:00October 22nd, 2020|

Connection String Parameters for Text File Sources

Connection String Parameters for Text File Sources   In the previous article I covered the connection string parameters for Excel data sources. We will now focus on the text files. There are different methods for describing text files' schema and using the information during opening or linking [...]

2022-03-22T09:29:14-05:00October 21st, 2020|
Go to Top