Link to home
Start Free TrialLog in
Avatar of deanlee17
deanlee17

asked on

Pass thru query login question

I am connecting to a database to try to retrieve a report someone has written. The best way for me to do this is (i believe) through a pass thru query. I have pasted the SQL from the their report into my pass thru query and it works fine, the problem is everytime i run this query i need to do the ODBC settings and enter the username and password to access the external database. Obv this is no good when clients are using the database.
Is there a way around this?

Many Thanks,
Dean
ASKER CERTIFIED SOLUTION
Avatar of therealmongoose
therealmongoose
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shekharsom
shekharsom

The best way is either:

1. change the query string to include username and password.

or

2. create a dns
Avatar of deanlee17

ASKER

Excellent. Spot on.