473,732 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1791
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*********@ho tmail.com> wrote in
news:An******** *********@newss vr11.news.prodi gy.com:
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********@bwa y.net.invalid> wrote:
"Rick Brandt" <ri*********@ho tmail.com> wrote in
news:An******* **********@news svr11.news.prod igy.com:
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*********@ho tmail.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*********@ho tmail.com> wrote in
news:An******** *********@newss vr11.news.prodi gy.com:
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*********@ho tmail.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
1290
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 ease at which they can retrieve all information about a specific entry which may be present in 2 or more of these databases. And if possible link to MS Exchange for email history. What solution(s) would you suggest to such client?
33
5949
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 future. I haven't heard of this. Does anybody know more about it? The IT-People usually prefer Oracle. If they really want to go in this direction, could our Access-application (if continued) be used as a front end with an Oracle back end? Does...
7
26966
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 long time. Then about a month ago there main server that hosted all the .mdb files crashed. So they restored everything to a new server (I believe 2003 server). Everything was fine for 2 weeks, then one morning they came in and the queries were...
21
2148
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 block is that I do not know how to create the web server environment. If anyone knows of a good starting point on how to learn this it would be most appreciated because I am unsure of what questions to even ask. Regards, Bill Mahoney The Alcott...
7
2056
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 the security files and accounts. I'm wondering about the possibility of continuing to use the '97 .mdws with the converted 2002 databases. Are there side effects? I have heard that '97 .mdws sometime bloat when used with Access 2K databases....
15
1969
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 provide my users a mini report writer where the report specs are stored as local data files. Can I do this in an MDE - e.g. have local data files for the report writer spec but no queries, forms or report changes? Thanks.
6
2110
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 from the contents of tables from separate databases. I've got the table adapters configured in the XSDs, connection strings in the web.config, and use data objects in the site's code, but for the life of me I cannot figure out how to...
1
2655
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 migration has been a challenge and we have 6,218 of these mdbs to convert. Any help would be greatly appreciated. Gwen
25
3007
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 PC running Microsoft Windows XP Professional 5.1.2600 (SP2) A PC running Microsoft Windows XP Professional 5.1.2600 (SP2) All of the PCs are running IIS
0
8773
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9445
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9306
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9180
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6733
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3259
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.