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

calendar_today Asked May 24, 2012
thumb_up 14 upvotes
history Updated April 16, 2026

Question posted 2012 · +7 upvotes

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.

Accepted answer +14 upvotes

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

ODBC;DRIVER=SQL Server;SERVER=ServerInstance;Trusted_Connection=Yes;DATABASE=Test

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

Top ms-access Q&A (6)

+14 upvotes ranks this answer #11 out of 55 ms-access solutions on this site — top 20%.