Solved

MS SQL ODBC Connection String issue

Posted on 2014-01-29
3
472 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
ID: 39817724
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
ID: 39817762
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
ID: 40146887
Sorry for the late points.  had forgotten this was open.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

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