Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ODBC Trusted Connection Property

Posted on 2004-03-30
1
1,323 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

807 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