Solved

DSN Less connection to linked sql server tables in access 2010

Posted on 2016-09-09
4
60 Views
Last Modified: 2016-09-12
It has been a long time since I have worked with Access

I think there was a way to link 2008 sql server tables without having to create an odbc dsn on each client machine but maybe not???
0
Comment
Question by:johnnyg123
4 Comments
 
LVL 25

Expert Comment

by:SStory
ID: 41791375
Do these still work? They are for an older version.
https://support.microsoft.com/en-us/kb/892490

It uses VBA functions to create a tabledef.  Example of building the ODBC connection string inline (source: link above)

    '//Use trusted authentication if stUsername is not supplied.
        stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase & ";Trusted_Connection=Yes"
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 41792162
try
Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;

more:
http://www.connectionstrings.com/sql-server/

one more

How to create a DSN-less connection to SQL Server for linked tables in Access
https://support.microsoft.com/en-us/kb/892490
0
 
LVL 19

Accepted Solution

by:
Eric Sherman earned 500 total points
ID: 41792895
Review this post that I previously answered which is the same as your question.  It include the steps and  VBA code to create a DSNLess Connection.

https://www.experts-exchange.com/questions/28415368/Connect-Access-UI-to-SQL-DB.html#a40008254

ET
0
 

Author Closing Comment

by:johnnyg123
ID: 41794307
Thanks!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
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…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

760 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

17 Experts available now in Live!

Get 1:1 Help Now