Solved

MS SQL ODBC Connection String issue

Posted on 2014-01-29
3
462 Views
Last Modified: 2014-06-20
Hi

Scenario:
1.  SQL Server 9.0 running on Small Business Server 2008
2.  Existing MS Access front end connected to MS SQL database using ODBC (original connection not created by me)
3.  This front end is in use by a number of users in the local network (using their own copies)
4.  I have added new tables to the back end SQL Server database and now wish to connect to them (I log in with a trusted connection).
5.  I create a DSN less ODBC connection to the back end tables (Trusted Connection) which works great for me logged into the server by RDP
6.  A test user (who is able to use the old version) on the local network attempts to connect using the new MS Access front end and gets an ODBC "cannot connect" error.

Working connection string on the old front end:

ODBC:DRIVER=SQL Server; SERVER=Servername,1433;UID=Username;APP=Microsoft Office 2010; Database=DatabaseName; TABLE=Tablename;

No one knows the backend database password.

What would be the best way forward?  The old connection string confuses me as it has a UID but no PWD.  Is it trusted or not?

Thanks
0
Comment
Question by:markremms
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
Comment Utility
It's not Trusted. A Trusted Connection would look something like this:

Driver=SQL Server;Server=ServerName;Database=DatabseName;Trusted_Connection=yes;

However, the connection you show is from Access. To create that, you should use the Linked Table Manager in Access to relink your tables, or delete the links from your FE and recreate all of them using a Trusted Connection. You can do that using the External Data - ODBC item on the ribbon. When doing this, you can tell Access to use a Trusted Connection, and you can select all tables that are needed in the database.

Be warned, however, that your server will need to be configured to allow Trusted Connections (or Mixed Authentication). If it's not, and you delete the links, you're dead in the water unless someone there can supply you with the password.
0
 

Author Comment

by:markremms
Comment Utility
Hmm.. If I do this won't I create a DSN?  Will it be necessary to distribute this to each user (or set up the DSN on each machine being used?)
0
 

Author Closing Comment

by:markremms
Comment Utility
Sorry for the late points.  had forgotten this was open.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
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…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

771 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

13 Experts available now in Live!

Get 1:1 Help Now