Solved

ODBC Trusted Connection Property

Posted on 2004-03-30
1
1,313 Views
Last Modified: 2012-05-04
Hi,

I have an MS Access 2000 application - with a fixed link to tables on an SQL server.  I have set up a File DSN and choosen the "With SQL Server authorisation using a login ID and password supplied by the user" option.

However every time I want to use the application I get a " Connection failed;SQLm State '28000' SQL Server Error: 18456 login failed message - bacause the Login ID defaults to my network login ID.  I can press ok at that stage and then remove tick from the trusted connection box and enter my SQL password but I don't want the user to have to do this every time they use the application.

Can someone tell me how I can get this to default to no trusted connection?

Thanks,

Andrew
0
Comment
Question by:AndrewMcLaughlin
1 Comment
 
LVL 1

Accepted Solution

by:
toradhikan earned 500 total points
ID: 10712768
You can try this :

Edit the .dsn file (could be present in C:\Program files\Common Files\ODBC\Data sources) in question and include the following key :

TRUSTED_CONNECTION=NO

If you want a specific user name to appear in that dialog box , try adding the following key :
UID=sa
Either sa or whatever is your user name.

If you don't want this dialog box to appear at all, you can add the following key also along with the above two :
PWD=sa
Either sa or whatever is the above UID's password.

Since you're using a File DSN, adding these keys might be sufficient.  If you use a System/User dsn, you can achieve the above using Linked Table Manager.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now