473,796 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Guidelines for Access FE changes required for SQL backend? MySQLbackend?

Anyone know of any list of changes required in an Access FE to make the
Access FE work with a SQL backend?

ditto for Access FE working with a MYSQL backend?

Bob
Nov 4 '06 #1
2 1475
Bob Alston wrote:
Anyone know of any list of changes required in an Access FE to make
the Access FE work with a SQL backend?

ditto for Access FE working with a MYSQL backend?
It depends on how the question is framed.

If you replace every table in your Access app with a link to a table on a SQL
Server having the same field definitions then the app will work even if you do
nothing else at all. Access and whatever VBA code you might be using doesn't
really care where that linked table resides. Only that it be named and have the
appropriate field names for what Access is trying to do with it.

Now...will it work well or even as well as before? That is a different
question. Most would be surprised to learn that it might work pretty darned
well just like that. Access/Jet does a good job of getting the server to
perform much of the work in that scenario. This might not be "client server
optimized", but rather than having to do a major overhaul what you usually find
is that there will be some areas that perform slowly or which perform "okay" but
where you can tell that an unnecessary amount of data is being pulled over the
LAN and those are the areas to concentrate on for rework.

Rework will normally involve replacing some of the built in mechanisms like
"find" with methods more suited to a server back end, building some server side
Views and Stored Procedures where complex joins and/or processing is being done,
and generally making sure that the app only pulls the minimum data for any given
task. Forms that just open against unfiltered tables with thousands of records
in them for example is a bad idea in a client server app.

Notions that the entire app must be re-written using ADO instead of DAO and that
ALL interaction with the server must be done with Views and Stored Procedures
are just flat wrong.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


Nov 4 '06 #2
Bri

Bob Alston wrote:
Anyone know of any list of changes required in an Access FE to make the
Access FE work with a SQL backend?

ditto for Access FE working with a MYSQL backend?

Bob
I agree with almost everything that Rick said in his response with a few
exceptions (for both MS SQL and MySQL):
- Include a Timestamp Field in all tables. In MS SQL this is a field
that you can't use for anything else, but in MySQL it is a user readable
DateTime field so it needs a special default value to work in this
capacity. The timestamp field allows Access to determine if another user
has edited the record while you have been editing it. You won't be able
to do bound edits without it. Adding it to your tables does not impact
what you have coded in your FE.
- Editing Recordsets require that you open them with the dbSeeChanges
option.
- When adding new records via .AddNew in a recordset, the AutoNumber
field is not generated until AFTER the Update rather than BEFORE it (Jet
does it at the .AddNew). So, if you add records via recordsets where you
need to know the PK of that record so you can add Child records, you
will need to adjust your code. Since it doesn't create the Autonumber
until after the Update you no longer have the record current. There are
a few ways to deal with this, the best being to try and not add records
this way and come up with an SQL Insert replacement.
- Queries with several tables and joins make Access think that it can't
send efficient request to the BE make it bring over huge amounts of data
to do it locally. These will make themselves evident fairly quickly.
These can be converted to PassThrough queries if you want/need to keep
the business logic in the FE or into Views or SPs if you don't.

There are a few other things to watch for, but are fairly rare. There is
a page out there somewhere with a lot more info in it on this topic....
OK, found it:
http://www.granite.ab.ca/access/sqlserverupsizing.htm

Hope that helps

--
Bri

Nov 5 '06 #3

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

Similar topics

63
5942
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy in Visual Studio to create reports and labels as it's in Access?` The advantage of VS.net is that not every user needs Access, right? And that would eliminate the Access version problem as well I guess.
28
4065
by: Lee Rouse | last post by:
Hello all, This is going to be a rather lengthy "question". I have an Access 2k database, separated front end/back end. Front end copies are on about 30 workstations and used frequently during the work day. The backend has a table called CLIENTS with approximately 6000 client records. Changes to data in the table are made via a frontend db Form which has CLIENTS as its record source.
13
7501
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on it, a frontend and a backend. Case 1: If vba code on the frontend updates many rows (360,000) on the backend, a form's timer event (from the frontend) will stop firing until the user gives the form focus. (Note that the update itself always...
6
3672
by: Terry Bell | last post by:
We've had a very large A97 app running fine for the last seven years. I've just converted to SQL Server backend, which is being tested, but meanwhile the JET based version, running under terminal server, has suddenly started running very slowly. The network engineer has thrown up his hands and said "It's Access 97". I've checked out lots of things including the Oplocks setting and other stuff from this NG, and I think I've done everything...
4
1423
by: Mark | last post by:
Hi All, I created a database for a friend a few months ago which has been working fine. However, he now wants a few changes implemented to accommodate his growing needs. When I gave him the database, I split it in anticipation of this so that I could give him a replacement fromtend without affecting his existing data. My problem is that one of the changes he has asked for requires one of the tables altering. My plan was to run code the...
49
3239
by: Mell via AccessMonster.com | last post by:
I created databases on Access 2003 and I want to deploy them to users. My code was also done using 2003. If they have Ms Access 2000 or higher, will they be able to use these dbs with all code, etc? Please explain -- Message posted via http://www.accessmonster.com
17
4895
by: shineofleo | last post by:
Here is the situation: I wrote a VB programm, which stores all the information in a single Access database file using jet engine. It worked well, however one of my customs reported that there was some problems with this programm. I checked, the log files showed that the database was corrupted. The customer told me that there no 'illegal' operation such as pull out the plug, or kill the programm via task manager... So is there any...
64
4608
by: John | last post by:
Hello there, Im cursing my place of employment...and its taken me a month to realise it... The scenario: Ive just stepped into a role to migrate an access database to VB.Net. The access database runs on terminal services and supports approximatly 25-30 users. It is crapping out big time, corrupted data, changes to the front end are difficult for someone unfamiliar with the system (me), the table structure is bad...really bad....there is...
2
19496
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
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
10467
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
10244
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...
1
10201
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
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
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.