473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Connecting Access MDBs to SQL databases

With all the recent discussions on ADPs and their lack of success, can
someone point me to some GOOD reading on what is required to link MDBs
to SQL Databases / Microsoft SQL Server 2000 Desktop Engine.

Also are their any good, concise summaries of key differences that
someone with Access/Jet experience would need to understand?

Thanks

Bob
Nov 13 '05 #1
8 1772
Bob Alston wrote:
With all the recent discussions on ADPs and their lack of success, can
someone point me to some GOOD reading on what is required to link MDBs
to SQL Databases / Microsoft SQL Server 2000 Desktop Engine.

Also are their any good, concise summaries of key differences that
someone with Access/Jet experience would need to understand?


In Control Panel you set up a DSN that points to the SQL Server instance and
database that you want to use. Then in Access...

File - Get External Data - Link Tables

Choose ODBC Data Source as the type, choose the DSN you created in step one, and
when the list of tables is displayed select those you want and press [OK].

Once you have links created you can largely work with them in the same manner as
you would Access tables. Now...doing this exclusively might not be the
"optimum" way to use a SQL Server database from a client, but it will work to
get you started. From there you simply find the places that need performance
enhancement and that is where you spend your time doing things differently.

A lot of the "re-design" that moving to client-server involves comes from people
who didn't have a very good multi-user (networked) design in the first place.
If your "all Access" application is using all of the best practices for
efficient data handling then it might need very little re-work when you move the
back end to SQL Server.

The problem comes from instances where Access allows you to get away with some
pretty awful design habits and then when you move to a server back end it
performs like crap. The notion that all your DAO has to be re-written and all
queries changed into Stored Procedures and Views is simply wrong. Some of them
will, yes. Many others will be fine as plain old Access queries.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com



Nov 13 '05 #2
"Rick Brandt" <ri*********@hotmail.com> wrote in
news:An*****************@newssvr11.news.prodigy.co m:
Bob Alston wrote:
With all the recent discussions on ADPs and their lack of
success, can someone point me to some GOOD reading on what is
required to link MDBs to SQL Databases / Microsoft SQL Server
2000 Desktop Engine.

Also are their any good, concise summaries of key differences
that someone with Access/Jet experience would need to understand?


In Control Panel you set up a DSN that points to the SQL Server
instance and database that you want to use. Then in Access...


Is a DSN required? Or just to create linked tables? Can't you save a
DSN-less connect string in the IN clause of a saved querydef and use
that as your interface to SQL Server via ODBC?

And what about ADO? Can't it connect to SQL Server directly, using
OLEDB instead of ODBC?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #3
Bob Alston wrote:
With all the recent discussions on ADPs and their lack of success, can
someone point me to some GOOD reading on what is required to link MDBs
to SQL Databases / Microsoft SQL Server 2000 Desktop Engine.

Also are their any good, concise summaries of key differences that
someone with Access/Jet experience would need to understand?

Thanks

Bob


Attaching remote sql databases to Access's database container is not
difficult. Making the system perform to satisfaction is another
question. Some random thoughts:

http://accesscoach.wikispaces.com/Access+ODBC
Nov 13 '05 #4
On Sat, 15 Oct 2005 20:47:38 -0500, "David W. Fenton"
<dX********@bway.net.invalid> wrote:
"Rick Brandt" <ri*********@hotmail.com> wrote in
news:An*****************@newssvr11.news.prodigy.c om:
Bob Alston wrote:
With all the recent discussions on ADPs and their lack of
success, can someone point me to some GOOD reading on what is
required to link MDBs to SQL Databases / Microsoft SQL Server
2000 Desktop Engine.

Also are their any good, concise summaries of key differences
that someone with Access/Jet experience would need to understand?
In Control Panel you set up a DSN that points to the SQL Server
instance and database that you want to use. Then in Access...


Is a DSN required? Or just to create linked tables? Can't you save a
DSN-less connect string in the IN clause of a saved querydef and use
that as your interface to SQL Server via ODBC?


Using a connect string in an IN clause works, but is very inefficient, and
it's not necessary. Table links can be made with a DSNless connection, it
just has to be done in code. What I usually do is make the links with the
DSN, then write a procedure to loop through the tabledefs collection, and
replace all the connect strings.
And what about ADO? Can't it connect to SQL Server directly, using
OLEDB instead of ODBC?


Yes, but the only reliable way to bind forms that way is to use an ADP, and
that's what we don't want to do.
Nov 13 '05 #5
On Sat, 15 Oct 2005 21:19:28 GMT, "Rick Brandt" <ri*********@hotmail.com>
wrote:

....
The problem comes from instances where Access allows you to get away with some
pretty awful design habits and then when you move to a server back end it
performs like crap. The notion that all your DAO has to be re-written and all
queries changed into Stored Procedures and Views is simply wrong. Some of them
will, yes. Many others will be fine as plain old Access queries.


It's such a relief not to be the only one shouting this from the rooftops.

Everybody - don't rewrite all your access queries as stored procedured and
views when you upsize!!!!!!! You probably won't help your application
performance, and you'll have to implement an entirely new set of add/edit
forms to be able to update data on the server.
Nov 13 '05 #6
David W. Fenton wrote:
"Rick Brandt" <ri*********@hotmail.com> wrote in
news:An*****************@newssvr11.news.prodigy.co m:
Bob Alston wrote:
With all the recent discussions on ADPs and their lack of
success, can someone point me to some GOOD reading on what is
required to link MDBs to SQL Databases / Microsoft SQL Server
2000 Desktop Engine.

Also are their any good, concise summaries of key differences
that someone with Access/Jet experience would need to understand?
In Control Panel you set up a DSN that points to the SQL Server
instance and database that you want to use. Then in Access...


Is a DSN required? Or just to create linked tables? Can't you save a
DSN-less connect string in the IN clause of a saved querydef and use
that as your interface to SQL Server via ODBC?


Never tried the IN clause against ODBC. My first thought is would it be
editable? If not then I would just use a passthrough and a DSN.

DSNLess has some advantages, though mostly they are administrative. Someone has
to create the DSN. That is fairly easily handled in code or by the installer of
the app. Also as I have stated before, many of my tables are links to an IBM
ISeries box and I have never been able to get DSNLess to work against those.
That has prevented me from really spending much time on a DSNLess app.

DSNLess also breaks the Linked Table Manager in Access 97 which is what I still
develop in. I know I could write a replacement for that, but that's a side
project that I have just never gotten around to.
And what about ADO? Can't it connect to SQL Server directly, using
OLEDB instead of ODBC?


Never touched ADO. In code I suppose what you're saying is correct, but as with
changing everything to Stored Procedures and Passthroughs I see no reason to do
that unless I have a performance problem to solve. If DAO against a link gives
me instantaneous response times, why complicate things further?
Nov 13 '05 #7
Steve Jorgensen wrote:
On Sat, 15 Oct 2005 21:19:28 GMT, "Rick Brandt"
<ri*********@hotmail.com> wrote:

...
The problem comes from instances where Access allows you to get
away with some pretty awful design habits and then when you move to
a server back end it performs like crap. The notion that all your
DAO has to be re-written and all queries changed into Stored
Procedures and Views is simply wrong. Some of them will, yes.
Many others will be fine as plain old Access queries.


It's such a relief not to be the only one shouting this from the
rooftops.

Everybody - don't rewrite all your access queries as stored
procedured and views when you upsize!!!!!!! You probably won't help
your application performance, and you'll have to implement an
entirely new set of add/edit forms to be able to update data on the
server.


I have had more than one occassion where changing to a View or SP was actually
slower than just using a local query against a link. I don't understand that,
but it does happen.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #8
Thank you for the many helpful replies!

Bob
Nov 13 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: joelm | last post by:
Hello, I have a client running multiple access databases as well as a couple SQL databases on SQL 2000. Their goal is to be more efficient by reducing redundant data entry and increase the...
33
by: Uwe Range | last post by:
Hi to all! A customer of mine told me some days ago that her IT-people told her ACCESS would not be such a good idea for continuing with our project, because Access will not be continued in the...
7
by: ddsvi78 | last post by:
I am a complete idiot when it comes to access. Now that said, I work for a computer security company and one of our customers came to us with an access problem. They had been running fine for a...
21
by: Madingo | last post by:
I have been using Access 2003 for about a year and I am trying to find out how to create a web test environment to try and transition some of my Access applications on to the web. My stumbling...
7
by: brucedodds2 | last post by:
I'm working at a company that is upgrading from Access 97 to 2002. We have a number of '97 databases that are .mdw secured, but in no case has anyone saved the original PIDs and SIDs used to create...
15
by: Bob Alston | last post by:
Is it considered best practice to distribute FE databases as MDEs rather than MDBs? Without flaming me for asking the question, could someone please enumerate the key advantages? Also I like to...
6
by: GregG | last post by:
Greetings, I've inherited a project which requires the use of multiple Access databases, each containing a dozen or so tables each. I need to perform queries which included relations and results...
1
by: mousse122 | last post by:
I am trying to convert MS Access 2003 databases (*.mdb) to MS Access Projects (*.adp) and connecting to the new SQL table. Can anyone help me understand how to migrate the forms into the *adp? This...
25
by: p byers | last post by:
Good Morning Folks I have a LAN Among the several connections to it are the following four devices: A MAXSTOR network Storage Device A PC running Microsoft Windows 2000 Server 5.0.2195 (SP4) A...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.