Results 1 to 7 of 7
  1. #1
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486

    Cant connect to sql server table

    I have a linked table in my access database that links to sql server. The database is on terminal server.

    I created the table as my user so I can open the database and access the linked table. However, my other users cant. In SQL server management studio I have added them as a user and they have connect access. However, when I open the database it opens it as read only and i get the following error when I try to connect to the linked table.

    Connection failed:
    SQL State: '28000'
    SQL Server Error: 18456
    Microsoft Sql Server Native Client 11 Sql Server login failed for user 'Domain\username'

    I have made sure that user is added to that database
    I can access it it as my user from the same machine that the other user is failing from.



    Any ideas?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    is the ODBC DSN set?

    Driver? I have users that have a different SQL driver than others. Some use {SQL server},
    some use :"Microsoft Sql Server Native Client 11"
    try switching it.

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    In SSMS give them db_datareader and db_datawriter roles.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #4
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486
    The user has reader and writer roles
    I also have the sql native client, i can try switching to another driver.

  5. #5
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    You mentioned terminal server, are you sharing the same front-end or each user has their own (preferred setup)? Are the folder permissions the same (you need read/write permissions for the folder that contains the front-end. Are the trusted locations set for the other user (they are user specific).

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  6. #6
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486
    An update to this thread. I checked permissions and swapped drivers etc and nothing worked. However, I did finally figure it out.

    Here is what I had to do:
    Create a system DSN - I was trying to use user DSN so I could limit to that user but it appears that a program started on terminal server is not quite like a logged in user.
    Create a user in the SQL Server security section (not the actual database) and assign/limit rights to the database there

    Previously, when i have done this succesfully in the past I just needed to add the user to that particular database, not the overall sql server. At that time the database was on the same server as the application so that may have been the difference.

  7. #7
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486
    Further update, just to be clear. I had added the users under the security tab in the first database, but somehow missed that. Long day???

    So basically my question was a bad one, just make sure you have created the user under the SQL server Security section and then add them to the database using the User Mapping

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 11-15-2013, 12:12 PM
  2. Cannot Connect To SQL Server Using Working DSN
    By mes5464 in forum SQL Server
    Replies: 4
    Last Post: 04-03-2013, 12:08 PM
  3. Connect To SQL Server
    By beso in forum Access
    Replies: 1
    Last Post: 12-23-2011, 01:19 PM
  4. Need Urgent Help [Related Connect DB to Server]
    By gunapriyan in forum Access
    Replies: 0
    Last Post: 08-18-2010, 09:49 AM
  5. Replies: 5
    Last Post: 03-29-2009, 07:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums