Microsoft Access
  Home arrow Microsoft Access arrow On Using Pass-through Queries in MS Access
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

On Using Pass-through Queries in MS Access
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 18
    2006-07-03

    Table of Contents:
  • On Using Pass-through Queries in MS Access
  • Providing the ODBC Connectivity information
  • Creating a Query
  • Saving Connection information with the query

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    On Using Pass-through Queries in MS Access


    (Page 1 of 4 )

    You might want to send a SQL specific query in Microsoft Access directly to the underlying ODBC database server to improve performance. You may do this by using a pass-through query. Running such queries is the topic of this tutorial.

    Introduction

    In earlier articles we discussed several options for working with a database backend with user interface objects created in MS Access. We considered this in the context of migrating an MS Access database to other database servers like SQL 2000, SQL 2005, and SQL Anywhere. If you want to send your SQL specific queries in Microsoft Access directly to the underlying ODBC database server, bypassing the  Microsoft Jet 4.0 engine, you may do so by using a pass-through query.  Removing interaction with one layer (the Jet Engine) between the client and server should improve performance. However, the syntax for the queries will  be SQL specific and does not support the Jet syntax anymore.

    This tutorial shows you how you may run a passthrough query on a database in the SQL 2005 server using the SQL Native Client.

    Creating a Passthrough Query in Design

    Create a new MS Access Database, PassThru.mdb

    Highlight Queries in the left-hand objects pane,  and click on New to create a query in design view.

    Close the Show Table window, which may show up,  by clicking on the close button. Right click on an empty area in the design and click on pass-through from the drop-down, SQL Specific -->Pass-Through as shown.

    Close the Window labeled Query1:SQL Pass-Through Query.

     

    Accept to save query. When asked for a name, provide a name; here it is passthru.

    You will see the icon of the pass-through query, passthru, in the queries collection

    More Microsoft Access Articles
    More By Jayaram Krishnaswamy


       · I once worked for a Networking company in Virginia who were sub-contracting us to...
     

    MICROSOFT ACCESS ARTICLES

    - Improving Construction of Statistical Proces...
    - How to Monitor Website Traffic using Statist...
    - Chi Square Test of Independence with MS Excel
    - Two-Way ANOVA (Analysis of Variance) in Micr...
    - Converting a MySQL Database to an Excel Work...
    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek