?
Solved

ODBC Trusted Connection Property

Posted on 2004-03-30
1
Medium Priority
?
1,332 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 2000 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
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.
Suggested Courses

777 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