Solved

ODBC Trusted Connection Property

Posted on 2004-03-30
1
1,325 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
[X]
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
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

730 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