Home

MS Access Passthrough Query keeps asking for DNS but others don't

%3CLINGO-SUB%20id%3D%22lingo-sub-339294%22%20slang%3D%22en-US%22%3EMS%20Access%20Passthrough%20Query%20keeps%20asking%20for%20DNS%20but%20others%20don't%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339294%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EMay%20have%20found%20the%20issue%20but%20not%20the%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20query%20below%20is%20a%20passthrough%20to%20Intersystems%20Cache%20database%20via%20ODBC%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22SELECT%20*%20FROM%20wmhISTORYdETAIL%22%20runs%20as%20a%20passthrough%20without%20asking%20for%20the%20DNS%20(no%20issue)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E'SELECT%20WMHistoryDetail.HistDate%2C%20WMHistoryDetail.HistMovDate%2C%20WMHistoryDetail.HistMovType%2C%20WMHistoryDetail.HistLocnFrom%2C%20WMHistoryDetail.HistLocnTo%2CWMHistoryDetail.HistHMNumber%20from%20SQLUser.WMHistoryDetail'%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ealways%20asks%20for%20the%20DNS%20but%20both%20are%20linked%20to%20a%20table%20that%20has%20the%20password%20saved.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20Ideas%20please%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-339294%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAccess%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-359367%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Access%20Passthrough%20Query%20keeps%20asking%20for%20DNS%20but%20others%20don't%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359367%22%20slang%3D%22en-US%22%3EThis%20has%20nothing%20to%20do%20with%20the%20SQL%20of%20the%20query.%20Open%20both%20queries%20in%20design%20and%20compare%20the%20connection%20strings%20in%20the%20Connect-Property%20of%20the%20queries.%20Copy%20the%20one%20from%20the%20working%20query%20to%20the%20other.%3C%2FLINGO-BODY%3E
buzz43uk
Occasional Visitor

Hi

May have found the issue but not the solution.

 

The query below is a passthrough to Intersystems Cache database via ODBC

 

"SELECT * FROM wmhISTORYdETAIL" runs as a passthrough without asking for the DNS (no issue)

 

but

 

'SELECT WMHistoryDetail.HistDate, WMHistoryDetail.HistMovDate, WMHistoryDetail.HistMovType, WMHistoryDetail.HistLocnFrom, WMHistoryDetail.HistLocnTo,WMHistoryDetail.HistHMNumber from SQLUser.WMHistoryDetail'

 

always asks for the DNS but both are linked to a table that has the password saved.

 

 

Any Ideas please?

 

Rob

 

1 Reply
This has nothing to do with the SQL of the query. Open both queries in design and compare the connection strings in the Connect-Property of the queries. Copy the one from the working query to the other.
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies