Results 1 to 13 of 13
  1. #1
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568

    Share System DSN with users on windows server 2012

    Hi Guys,

    i set up System DSN ODBC connection to postgresql:

    Click image for larger version. 

Name:	Screenshot_12.png 
Views:	34 
Size:	21.2 KB 
ID:	34266

    And next i want to connect to this odbc via Access from other user account using the same Virtual Machine,
    i do not have System DSN tab...:

    Click image for larger version. 

Name:	Screenshot_13.png 
Views:	34 
Size:	19.1 KB 
ID:	34267

    how can i share DSN with other users?

    Interesting fact: As Administrator when i am trying to linked table to postgresql also there is no system DSN tab...



    Please help,
    Jacek

  2. #2
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Hmm i think this is not possible...
    Only way is to copy register entries to the user account.

    Hmm so in this case should i use DSN-less connections?

    How this should work?
    While opening copy of FE from shared folder on user's account macro should run and check if there are new tables?

    Best,
    Jacek

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Jacek,

    It could be just a 32bit vs. 64 bit issue, as you show a 64 bit DSN. In any case, in my experience you don't need the DSN for every user once you properly connected the front-end to the back-end. The connection information for each linked table is stored in the Connect field in the msysyObjects table. As long the users have the proper permissions to the back-end and their login profile has the appropriate driver installed they should be OK.

    Cheers,
    Vlad

  4. #4
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    thank you Vlad,

    I checked 32 bit driver and 64 bit, 32 bit works only.
    And i think issue is within windows server 2012 - there is only Machine source and DSN file to set up odbc connection.

    Click image for larger version. 

Name:	Screenshot_13.png 
Views:	25 
Size:	19.1 KB 
ID:	34268

    Maybe here is a problem?

    Best,
    Jacek

  5. #5
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    I am using 32 bit Access and 64 bit postgresql and odbc 32 bit is working fine...

    Hmm very strange problem,

    Best,
    Jacek

  6. #6
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Anyone>?

    Jacek

  7. #7
    Gicu's Avatar
    Gicu is offline VIP
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Jacek,

    Once you link the tables in your first account the connection info should be stored by Access and you shouldn't need to "refresh" the DSN for every user as long as each user profiles has access to the back-end and the driver. Isn't that the case for you? If you do need to share the connection info try to save it as a file DSN instead of system DSN, looks like you have access to the File DSN tab in both accounts.

    Cheers,
    Vlad

  8. #8
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Hi Vlad,

    thank you for help.

    Code:
    Once you link the tables in your first account the connection info should be stored by Access and you shouldn't need to "refresh" the DSN for every user as long as each user profiles has access to the back-end and the driver. Isn't that the case for you?
    Strange, but this is not working

    Code:
    If you do need to share the connection info try to save it as a file DSN instead of system DSN, looks like you have access to the File DSN tab in both accounts.
    It works.

    I will try with DSN less connection and this trick:
    https://www.microsoft.com/en-us/micr...e-connections/

    Best,
    Jacek

  9. #9
    Gicu's Avatar
    Gicu is offline VIP
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Hi Jacek,

    Have you looked at the Connect field in msysObjects to see if you can spot why is not working for everyone? Are you sharing a Postgressql user/password or are you using trust authentication?

    Cheers,
    Vlad

  10. #10
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Hi Vlad,

    thank you.

    I have DSN connection string on my user Connect field in FE:

    Click image for larger version. 

Name:	Screenshot_24.jpg 
Views:	16 
Size:	119.5 KB 
ID:	34297

    Code:
    ODBC;DSN=PostgreSQL35W;DATABASE=AccessTest;SERVER=localhost;PORT=5432;CA=d;A7=100;B0=255;B1=8190;BI=0;C2=;CX=1c305
    And i have error:

    Click image for larger version. 

Name:	Screenshot_25.png 
Views:	16 
Size:	150.0 KB 
ID:	34298

    Of course there is no PostgreSQL35W DSN set up and this is causing the problem.

    But what you said DSN should be automatically moved to user account.

    Best,
    Jacek

  11. #11
    Gicu's Avatar
    Gicu is offline VIP
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Jacek,

    Do you have the exact same string in msysObjects Connect field?

    Cheers,
    Vlad

  12. #12
    Gicu's Avatar
    Gicu is offline VIP
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Have a look at the two screen shots showing the connect string from the properties sheet in table design (the one you used) vs. the connect field from msysyObjects. You can see that that one specifies the driver, user id and password. That is the one Access uses to connect to the back-end and that is where you want to focus your efforts. Do you have the same driver installed and available when you log in as a different user? If using trust authentication is that user set up with permissions to access the back-end?

    Click image for larger version. 

Name:	table_design_property.JPG 
Views:	12 
Size:	31.7 KB 
ID:	34300

    Click image for larger version. 

Name:	msysobjects.JPG 
Views:	12 
Size:	36.4 KB 
ID:	34301
    Cheers,
    Vlad

  13. #13
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Hi Vlad,

    the connection string is almost the same:

    (I pasted from msysObjects into Validation text field):

    Click image for larger version. 

Name:	Screenshot_21.png 
Views:	6 
Size:	31.2 KB 
ID:	34304

    msysObjects:
    Click image for larger version. 

Name:	Screenshot_20.jpg 
Views:	6 
Size:	288.6 KB 
ID:	34305

    There is no ODBC in msysObjects.
    Hmmm.

    UPDATE

    Thank you Vlad, thanks for your tips and help.
    I found the issue.

    I had ODBC driver for 64 bit as system DNS. In this tab should be PostgreSQL odbc driver but for 32 BIT.

    Thank you!
    Jacek

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

Similar Threads

  1. Getting a date in SQL Server 2012
    By RayMilhon in forum SQL Server
    Replies: 6
    Last Post: 01-23-2018, 10:51 AM
  2. Access 2010 and Server 2012 R2?
    By btidwell3 in forum Access
    Replies: 1
    Last Post: 06-03-2016, 04:30 PM
  3. Export Access 2013 to sql server 2012
    By jassie in forum Import/Export Data
    Replies: 2
    Last Post: 05-18-2015, 01:03 PM
  4. Replies: 4
    Last Post: 11-18-2013, 05:53 PM
  5. .MDB Backend on a 64bit 2012 server
    By chrispl in forum Access
    Replies: 1
    Last Post: 08-09-2013, 09:29 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