How do I create a passthrough query in access using a DSN-less connection?

15,048

In SQL view, choose properties after you have selected passthrough query and insert an ODBC connect string. For example:

ODBC;DRIVER=SQL Server;SERVER=Server\Instance;Trusted_Connection=Yes;DATABASE=Test

See also: http://www.connectionstrings.com/sql-server-2008

Share:
15,048

Related videos on Youtube

Brett G
Author by

Brett G

Updated on September 15, 2022

Comments

  • Brett G
    Brett G over 1 year

    I'm using DSN-less connections to my SQL Server in an Access database. However, whenever I try to write a "Pass-Through" query and run it, a dialog box pops up asking for the DSN.

  • Brett G
    Brett G almost 12 years
    Ahhh, under "ODBC Connect Str". How easy, but so hard to find. Thanks!
  • namko
    namko over 5 years
    Will someone explain why this is the case? Shouldn't the Query pass through easily with the DSN-less connection?