Upgrading Access 97 to SQL Server advise

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have an access 97 frontend/backend app. I need to upgrade backend to sql
server with necessary coding changes to then frontend. I have two questions;

1. Am I better off converting the app to a more recent version of Access
before upgrading backend to sql server?

2. Are their any documentations/pointers that I can use to guide me through
upgrading from Access to sql server process?

Many Thanks

Regards
 
John

"... upgrade backend to SQL-Server ..." ?Which version of SQL-Server?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
John

If I recall correctly, Microsoft has "upgrade" tools and assistance on their
SQL-Server pages on-line.

How easy (or difficult) the upgrade will be depends on a number of factors.

For instance, are your Access objects named without spaces?!

Do your forms attempt to load the entire table or just a single record?

Do you have permissions on the copy of SQL Server, or will you need to work
closely with your SQL DBAs?

Does your application include code that employs Access-specific functions?

The list goes on...

Why do believe you need to upgrade to SQL-Server? What is the underlying
impetus/requirement?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
Hi

Thanks. The system is getting slower as the number of records and number of
users is increasing.

Thanks again.

Regards
 
John

Are your tables indexed?

How large is your Access .mdb file? Is your application split?

Are you using an antivirus?

How many users are simultaneously attempting to enter data?

Are you working on a peer-to-peer network, a LAN, or a WAN?

There are a lot of factors that can influence performance.

More info, please...

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
Hi Jeff

Please see inline;

Jeff Boyce said:
John

Are your tables indexed?
Yes

How large is your Access .mdb file? Is your application split?

Around 250MB
Are you using an antivirus?

Yes but it can be set aside or disabled.
How many users are simultaneously attempting to enter data?

Around 15. Total users are 25.
Are you working on a peer-to-peer network, a LAN, or a WAN?

MS SBS 2003 Server network.

Thanks

Regards
 
For instance, are your Access objects named without spaces?!

Some
Do your forms attempt to load the entire table or just a single record?

Most do all records
Do you have permissions on the copy of SQL Server, or will you need to
work closely with your SQL DBAs?

Full permissions on SQL Server
Does your application include code that employs Access-specific functions?

Some

Thanks

Regards
 
John

Are your tables indexed on the fields your application uses to join tables,
on the fields used as selection criteria, and on the fields used a sort
fields?

Is your application split into front-end and back-end? How large are each?
Have you made a backup copy and run Compact & Repair on these?

Have you made a backup copy and opened a code module to run the
Debug/Compile?

Having a slow application isn't necessarily improved by moving the data to
SQL-Server. Sometimes, yes, but it may require a significant bit of re-work
to better take advantage of the client/server relationship instead of the
out-of-the-box file/server relationship Access uses.

Regardless of your answers to all these, there is no one correct response.
Upsizing to SQL-Server may help, but it may also be a time-consuming and
expensive undertaking with limited performance improvement.

Another reason for moving to a SQL-Server back-end, located on a LAN server,
is because many LANs are backed up more regularly than are local desktop
PCs.

So if you need a yes/no answer, good luck! If you need ideas what you'll
need to consider, read back over these emails.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
move to ADP and get away from Access97.

anything else is a waste of time.

If you don't want to move to ADP then get a copy of Dreamweaver and
mvoe to ASP.
 
Hi Aron

Any specific version of Access is better for ADP or anything from Access
2000 or above is fine?

Any good documentation on how to get to ADP and then to sql server backend?

Thanks

Regards

move to ADP and get away from Access97.

anything else is a waste of time.

If you don't want to move to ADP then get a copy of Dreamweaver and
mvoe to ASP.
 
Are your tables indexed on the fields your application uses to join
tables, on the fields used as selection criteria, and on the fields used a
sort fields?

All relevant fields arer indexed.
Is your application split into front-end and back-end? How large are
each? Have you made a backup copy and run Compact & Repair on these?

Yes. Around 35 MB front end (no data). Backend around 250 MB data.
Have you made a backup copy and opened a code module to run the
Debug/Compile?

All the time.
Having a slow application isn't necessarily improved by moving the data to
SQL-Server. Sometimes, yes, but it may require a significant bit of
re-work to better take advantage of the client/server relationship instead
of the out-of-the-box file/server relationship Access uses.

Fair enough. I am looking or some guidelines on how to turn access app into
as true a client server app as possible.

Thanks

Regards
 
Here are some links that you may find useful (in addition to the link
Alex posted).

TechEd Online Panel (video):
Go to http://msdn.microsoft.com/en-us/events/teched/cc676818.aspx and
search for: "Are we there yet? Successfully navigating the bumpy road
from Access to SQL Server"

Microsoft Access or SQL Server 2005: What's Right in Your
Organization?
http://www.microsoft.com/Sqlserver/2005/en/us/migration-access.aspx or
download.microsoft.com/download/a/4/7/a47b7b0e-976d-4f49-b15d-f02ade638ebe/SQLAccessWhatsRight.doc

Optimizing Microsoft Office Access Applications Linked to SQL Server
http://msdn.microsoft.com/en-us/library/bb188204.aspx

What are the main differences between Access and SQL Server?
http://sqlserver2000.databases.aspf...ifferences-between-access-and-sql-server.html

"The Best of Both Worlds--Access MDBs and SQL Server"
http://www.jstreettech.com/cartgenie/pg_developerDownloads.asp

SQL Server Migration Assistant for Access (SSMA for Access)
http://www.microsoft.com/sql/solutions/migration/access/default.mspx

FMS Upsizing Center
http://www.fmsinc.com/Consulting/sqlupsizedocs.aspx

Microsoft Access Developer's Guide to SQL Server
http://www.amazon.com/dp/0672319446

HTH,

--Mary
 
John

Some of the advice you receive in this newsgroup comes from sources you
really need to question ... actually, ALL of the advice you receive needs
'vetting', since you get what you pay for in this free newsgroup <g>...

Before undertaking any change, do a bit of research on the sources to check
credibility and past advice.

Microsoft offers advice/suggestions on migrating from Access to SQL-Server,
and provides some migration/convertion tools.

You might want to start a new post in either the .access.conversion or the
access.sqlupsizing newsgroup.

I can offer what I experienced ... I was told to migrate the Access
back-ends to SQL-Server, company policy. I created the SQL-Server tables,
populated them, then connected to them using ODBC/linked tables. This took
less than a week for the dozen or so applications.

The next step was working my way through all of the front-ends and
rebuilding them to take better advantage of the SQL-Server data source.
This step took several months (think design, development, testing,
redevelopment, deployment).

Best of luck on your project.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
John said:
Hi

I have an access 97 frontend/backend app. I need to upgrade backend to sql
server with necessary coding changes to then frontend. I have two
questions;

1. Am I better off converting the app to a more recent version of Access
before upgrading backend to sql server?

The above is not a large requirement. It really depends much on the hardware
and the machines you have. Remember, each new version of a product takes
more memory and uses up more resources. So, if you not using the new
features
then you suffer a slow down. I am not aware that the "connection" to sql
server is going to be any better then the a97 version you are using.

What is improved in later versions of access is the up-sizing tools that
allow you to
upsize that back end data to sql server. Each version since 97 has improved
a bit in this area. On the other hand, you can use the sql server tools to
import that back end file, so it not that you have to use the up-sizing
wizard in ms-access to move up the data. You can certainly give the upsizing
wizard in a97 a try. I not used the a97 one (can't even recall if there is
one).

Keep in mind that after upgrading your back end to sql server you should
find
that about 99% of your vba code and everything else should work as before.
(you front end simply now has linked tables to sql server in place of links
to that back end.
2. Are their any documentations/pointers that I can use to guide me
through upgrading from Access to sql server process?

there is almost "too" much material in this regards...here is a few links

http://support.microsoft.com/default.aspx?scid=kb;en-us;175619&Product=acc

ACC2000: "Access 2000 Upsizing Tools" White Paper Available in Download
Center
http://support.microsoft.com/?id=241743

ACC2002: "Access 2002 Upsizing Tools" White Paper Available in Download
Center
http://support.microsoft.com/?id=294407

ACC2000: Optimizing for Client/Server Performance (odbc)
http://support.microsoft.com/?id=208858

ACC: "Upsizing to Microsoft SQL Server" White Paper Available in Download
Center (a95, and a97)
http://support.microsoft.com/?id=175619

HOW TO: Convert an Access Database to SQL Server (a97,a2000)
http://support.microsoft.com/?id=237980


ACC: Tips for Optimizing Queries on Attached SQL Tables
http://support.microsoft.com/?id=99321

====

I add my tips here:

SQL server is indeed a high performance system, and also a system that can
scale to many many users.

If you write your application in c++, or VB or in your case with ms-access,
in GENERAL the performance of all of these tools will BE THE SAME.

In other words...sql server is rather nice, and is a standard system used in
the IT industry.

However, before you convert..how well does your application run now?

We often see posts here that a application is too slow with one user. If the
application is too slow with one user..then what can one expect when they
try and run 10 users. That is now 10 times the requirements..

The other issue is how well is the database setup?

Further..how well are the forms designed?

How well does the application work with 5 users..and then when you jump to
10 users...how much a slow down to you notice?

A few things:

Having a table with 75k records is quite small. Lets assume you have 12
users. With a just a 100% file base system (jet), and no sql server, then
the performance of that system should really have screamed.

Before Microsoft started "really" selling sql server, they rated JET could
handle easily 50 users. We have credible reports here of people
running 100 users. however, in those cases everything must be
"perfect".

I have some applications out there with 50, or 60 HIGHLY related tables.
With 5 to 10 users on a network, response time is instant. I don't think any
form load takes more then one second. Many of those 60+ tables are highly
relational..and in the 50 to 75k records range.

So, with my 5 users..I see no reason why I cant scale to 15 users with
such small tables in the 75,000 record range.

If the application did not perform with such small tables of only 75k
records..then upsizing to sql server will do absolute nothing to fix
performance issues. In fact, in the sql server newsgroups you see weekly
posts by people who find that upgrading to sql actually slowed things down.
I even seem some very cool numbers showing that some queries where actually
MORE EFFICIENT in terms of network use by JET then sql server.

So, keep in mind that moving to sql sever will likely result is LESS
performance then what you have now *unless* your designs limit records
transferred to the front end.

My point here is that technology will NOT solve performance problems.
However, good designs that make careful use of limited bandwidth resources
is the key here. So, if the application was not written with good
performance in mind..then you kind are stuck with a poor design!

I mean, when using a JET file share, you grab a invoice from the 75k record
table..only the one record is transferred down the network with a file share
(and, sql server will also only transfer one record). So, at this point, you
really will NOT notice any performance difference by upgrading to sql
server. There is no magic here.

Sql server is a robust and more scalable product then is JET. And, security,
backup and host of other reasons make sql server a good choice.
However, sql server will NOT solve a performance problem with dealing
with such small tables as 75k records

Of course, when efforts are made to utilize sql server, then
significant advances in performance can be realized.

I will give a few tips...these apply when using ms-access as a file
share (without a server), or even odbc to sql server:

** Ask the user what they need before you load a form!

The above is so simple, but so often I see the above concept ignored.
For example, when you walk up to a instant teller machine, does it
download every account number and THEN ASK YOU what you want to do? In
access, it is downright silly to open up form attached to a table WITHOUT
FIRST asking the user what they want! So, if it is a customer invoice, get
the invoice number, and then load up the form with the ONE record (how can
one record be slow!). When done editing the record...the form is closed, and
you are back to the prompt ready to do battle with the next customer. You
can read up on how this "flow" of a good user interface works here (and this
applies to both JET, or sql server applications):

http://www.members.shaw.ca/AlbertKallal/Search/index.html

My only point here is restrict the form to only the ONE record the user
needs. Of course, sub-forms, and details records don't apply to this rule,
but I am always dismayed how often a developer builds a nice form, attaches
it to a large table, and then opens it..and the throws this form attached to
some huge table..and then tells the users to go have at and have fun. Don't
we have any kind of concern for those poor users? Often, the user will not
even know how to search for something ! (so, prompt, and asking the user
also makes a HUGE leap forward in usability. And, the big bonus is reduced
network traffic too!...Gosh...better and faster, and less network
traffic....what more do we want!).

** Don't use quires that require more then one linked table

(this ONLY applies to odbc to sql server...you CAN and are FREE to do this
with a mdb JET file share..and also with ADP projects to sql server).

When you use
ODBC, one table could be on the corporate server, and the other ODBC might
be a FoxPro table link 3 computers from the left of you. As a result..JET
has a real difficult time joining these tables together..and JET can not
assume that the two tables are on the same box..and thus have the "box" join
the tables. Thus,while jet does it best..these types of joins can often be
real slow. (note the word "often" here, it not "always" the case. So, if
existing quires run ok speed wise, then don't waste time fixing them.

In a migration to sql server, simply moving up the data back end and
linking should get your application almost working. it is "then" you
start to address parts that simply run too slow.

The simple solution in these slow query cases is to change the query to
a view and link to that. This is the least amount of work, and means the
joins occur on the server side. This also applies to combo boxes. Most
combos boxes has sql embedded in them. That sql has to be processed, and
then thrown to a linked odbc table. This is a bit sluggish. (a form can have
maybe one, or two combos..but after that ..it will start to load slow). So,
remove the sql from the combo box, build a view..and link the combo box
direct to that view (JUST USE the view name...the sort, and any sql need to
be in the view). The result is quite good combo box load performance. (and
again, not very much work. There are other approaches that can even speed
this up more..but we have to balanced the benefits VS. the amount of work
and coding. I don't think once should re-code all combo boxes to a call back
with a pass-through reocrdset..but that can be a solution also).

If you are using a ADP access project, the above points about the joins
with more then one table does NOT apply..since all queries execute
on the sql server side. (perhaps you could consider converting the
application to a ADP project. It would at least force you to make
most sql run on the server side. However, ODBC is just fine
and is usually EQUAL in performance if you do things right).

** Of course, if you do have sql with more then one table..then pass-though
is the best if using odbc. (again..this does NOT apply to a mdb JET file
share).

** You can continue to use bound forms..but as mentioned..restrict the form
to the one record you need. You can safely open up to a single invoice,a and
even continue to use the "where" clause of the openform. Bound forms are way
less work then un-bound forms...and performance is generally just is good
anyway when done right.

** Large loading of combo boxes. A combo box is good for about 100
entries. After that..you are torturing the user (what..they got to look
through 100s of entries). So, keep things like combo boxes down
to a min size. This is both faster..and MORE importantly it is
kinder to your users.

After all, at the end of the day..what we really want is to make
things easy for the users...and treat them well.. It seems that
treating the users well, and reducing the bandwidth
(amount of data) goes hand in hand. So, better applications
treat the users well..and run faster! (this is good news!)
 
John said:
Any specific version of Access is better for ADP or anything from Access
2000 or above is fine?

Any good documentation on how to get to ADP and then to sql server backend?

I'm going to be blunter than Jeff in his very polite reply.

Please ignore Aaron's posting as Aaron's answer to just about every
question is SQL Server and ADPs. No matter how appropriate his
response.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
**** you jet poser


I'm going to be blunter than Jeff in his very polite reply.

Please ignore Aaron's posting as Aaron's answer to just about every
question is SQL Server and ADPs.  No matter how appropriate his
response.

Tony
--
Tony Toews, Microsoft Access MVP
   Please respond only in the newsgroups so that others can
read the entire thread of messages.
   Microsoft Access Links, Hints, Tips & Accounting Systems athttp://www.granite.ab.ca/accsmstr.htm
   Tony's Microsoft Access Blog -http://msmvps.com/blogs/access/
 
Do you really think that we'll listen to a Jet _LOSER_?

THEY WANT SQL SERVER **** YOU JET POSER
 
Back
Top