Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - sql vs access on my server.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

sql vs access on my server.

 Post Reply Post Reply
Author
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Topic: sql vs access on my server.
    Posted: 08 January 2004 at 6:09pm

I've setup two forums on my server.
One is access: http://129.125.101.174/c4dportal/forum/default.asp
Database size: 10 mb

One is sqlserver:http://129.125.101.174/c4dportal2/forum/default.asp
Database size: 42 mb

Access database has been ported upsized to sql. It looks like it's too large, because I've seen Borg post a message where he said his database is 30 mb.

average load time default.asp page on access: 0.8125 seconds. 
average load time default.asp page on sql     : 1.3828 seconds.

Load time when searching for ''the'' on access: 0.5400 seconds.
Load time when searching for ''the'' on sql: 0.9510 seconds. 
(84 results)

It looks like access is faster here. Question here is...is it caused by the sql database that is probably too large, or not entirely correct because of upsizing (forum is working 100 % though), or does sql become faster once the post count is fairly large (currently have 9000 posts on my forum)?

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2004 at 6:45pm
Check the indexing and log options on the SQL DB. Many servers default to an initial log size that's almost as big/bigger than the DB

Lead me not into temptation... I know the short cut, follow me.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2004 at 9:59am
42 seems to be way to big, run the following in your QA
BACKUP LOG databasename WITH TRUNCATE_ONLY
DBCC Shrinkdatabase (databasename)

It should shrink your db quite a bit. I have noticed that Access upsized databases have a lot of free pages in the db and some maintanance is acutally a must afterwards
Back to Top
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2004 at 10:11am

The size is now 17.63 mb. That's a huge difference .
Thanks for the tip Michael.

The speed of the sql server is still the same though. No difference. I've set the priority to high in enterprise manager and kicked the cpu cycles up. Still no difference. I wonder if it has something to do with cpu optimization, since my processor is listed as intel pentium although I have an AMD.

Futhermore, could licensing be an issue here. I've checked the sql server statistics under admin of the forum , and it says licensing unknown. I'm not sure what this means.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2004 at 10:45am
For smaller databases Access can sometimes be quicker becuase of the way the different systems work, but as databases get bigger SQL server is always far superior.

With Access you have a flat file instead of a server, with the flat file of access the entire database needs to be loaded into memory, this means that with smaller databases it is sometimes faster for things like searches as the data is in memory.

Also with Access the file is local and loaded into the local servers memory, with SQL server, often the SQL server database is located on another server, this can mean that sometimes you have delays on the network trnasffering data between the servers.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.