Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ASP / Database Access / May 2007



Tip: Looking for answers? Try searching our database.

About update access database data by using ASP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
yuling3086 - 23 May 2007 06:53 GMT
Hi All,

I have a web that i need to update several table at a page and at the same
time when user click on the update button.May I know that how to speed up the
update process?I am using Access database.

Please advice.

thanks
Bob Barrows [MVP] - 23 May 2007 14:05 GMT
> Hi All,
>
[quoted text clipped - 3 lines]
>
> Please advice.

Again, you leave us with no way to specifically answer the question.
Some general performance tips:

Get in and immediately get out. Do not keep database connections open
any longer than you need to. Open the connection immediately before you
need to use it. Close it immediately after your last database-related
task on the page is performed. The rest of the tips are geared toward
achieving this result.

Don't use recordsets for data maintenance. Recordsets should be used
solely for retrieving read-only data for display or computations. Avoid
recordset loops:
http://databases.aspfaq.com/database/should-i-use-recordset-iteration-or-getrows
-or-getstring.html

(My preference is to use GetRows arrays - but disconnected, client-side
recordsets are fine if you need cursor functionality)

Instead, use SQL DML (Data Modification Language - INSERT, UPDATE and
DELETE).

But don't resort to dynamic sql. Use parameters, either via saved
parameter queries (my preference):
http://www.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=e6lLVvOcDHA.1204%4
0TK2MSFTNGP12.phx.gbl


http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&selm=eHYxOyvaDHA.402
0%40tk2msftngp13.phx.gbl


or via parameter markers in your sql strings:
http://groups-beta.google.com/group/microsoft.public.inetserver.asp.db/msg/72e36
562fee7804e


Signature

Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.