Maximum Length of a SQL Query in Microsoft Access 2010?

iokevins picture iokevins · Oct 8, 2011 · Viewed 12.5k times · Source

Attempting to copy/paste a 159KB TSQL query into Microsoft Access 2010 passthrough query editor (to a Microsoft SQL Server 2008 backend).

This produces pop-up error, "The text is too long to be edited".

What is the maximum length of a query in Microsoft Access 2010?

Answer

Dzoki picture Dzoki · Oct 8, 2011

The help file says that the maximum number of characters in a SQL statement is approximately 64,000. It doesn't mention any difference between pass through queries and other queries, so in the absence of any specific documentation I'm assuming that this also applies to pass through queries.