title: ODBC Connection Failed #3151 MS Access --> SQL Server 2008
body: <p>I have an MS Access application that links to a SQL Server 2008 db for all of its data.  For years, it has worked fine when the SQL Server was on Win2008 Standard 64-bit SP2 and SQL Server 2008 v10.0.4.  I recently moved the back-end SQL db to a newer server (Win2008 R2 Standard 64-bit and SQL v10.50.1600).  After the move, everything on the application worked just fine as expected, no issues.  However, we have a month-end process that generates relatively large reports (300-500 pages) which uncovered an issue that we don't normally see in our day-to-day processing.</p>
  
  <p>My report is based on a pass-through query.  The query runs almost instantaneously and produces 8000 rows.  I can preview the query and quickly navigate to the end of the RS to see the 8000'th row.  No problem.  If I pull up the report that's based on that query, I can see that there are 350 pages and I can navigate page-by-page through the report with no problem.  I can even type in a page number and jump to page 50, 100, 150, etc. with no problem. Note, there is no processing/code/logic happening on any fired events on the report - just displaying and formatting the data.  </p>
  
  <p>HERE IS WHERE THE PROBLEM OCCURS:  If I preview the report and try to jump to the last page from the first page, it'll sit and think for a while (38 seconds to be exact) and then throw <strong>Error #3151 ODBC Connection to [DNS Name] Failed.</strong>  </p>
  
  <p>If I simply update the connect string on the pass-through query to point it back to the "older" SQL Server and run the same thing, it works just fine.  I've tried adjusting the connect string to use IP address instead of DNS name, no luck.  This is a process that's worked for years with no problem so I know the client-side logic is sound.</p>
  
  <p>Any thoughts or suggestions?</p>