Re: Session_OnEnd event doesn't fire

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Patrick (xxx_at_xxx.xxx)
Date: 04/13/04


Date: Tue, 13 Apr 2004 19:58:17 +0200

thanks Bob
it is the second time you save me :-)

Now; let's code !

"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> a écrit dans le message de
news:%23beW84XIEHA.2524@TK2MSFTNGP11.phx.gbl...
> Patrick wrote:
> >> Yes, have ONE table and have sessionID as a key. Then you can run
> >> queries, delete, etc. where sessionID= instead of dropping and
> >> re-creating tables all day.
> >
> > But because of the page lock, isn't there a risk for a user to lock
> > rows that do not have the same SessionID ?
>
> Yes, since multiple rows will be contained by a single page, and Jet uses
> page-locking, there is a slight possibility of that occurring, especially
if
> you have the table indexed to create a "hot spot" at the last page of the
> table where all new records will be inserted, and you have a lot of users
> attempting simultaneous inserts.
>
> You can minimize the potential impact of these page locks by
> 1. Most important: keep transactions short by using read-only recordsets
for
> data retrieval and INSERT,UPDATE,DELETE queries for data modification.
Also,
> open your connections late (immediately before they are needed) and close
> them early (as soon as you no longer need them)
> 2. If deadlocks are still occurring, use a field (or fields) for your
> primary key that will assure that consecutive session id's will not be
> stored consecutively
> 3. If it is still a problem, pad your records so that each page only
> contains a single row of data. Each page is 2K, so as long as you ensure
> that each row of data contains a little more than 0.9K, you will cause
each
> row to occupy its own page.
>
> With a well-designed application, you should not have to worry about page
> locks impairing user activity unless you are dealing with hundreds of
users.
>
> Bob Barrows
> --
> 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.
>
>



Relevant Pages

  • RE: Desktop goes blank after selecting Lock from Loggin Screen
    ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... Desktop goes blank after selecting Lock from Loggin Screen ... it occurs once I choose to log off or lock the server. ...
    (microsoft.public.windows.server.sbs)
  • Re: Automatic date change
    ... you CAN stop a date or any field from updating - by the LOCK ... You are using a DATE or TIME field rather than a CREATEDATE field. ... This message is posted to a newsgroup. ...
    (microsoft.public.word.docmanagement)
  • Re: Error! Bookmark not defined. HELP!!
    ... > find anything so am submitting it myself. ... this is such an informative group and I really appreciate the ... fields and press Ctrl+F11 to lock them. ... This reply is posted in the Newsgroup; please post any follow question or reply ...
    (microsoft.public.word.docmanagement)
  • Re: Entering Text to a Form Text Box
    ... What you are talking about is what Word calls an "online form." ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ... > Before I lock the form I can eneter text in the box afetr I lock it I ...
    (microsoft.public.word.docmanagement)
  • Re: macro preventing document to be opened
    ... If your file is named Filename.doc, the "lock" file will be ~$lename.doc. ... Microsoft MVP ... please post all follow-ups to the newsgroup so ... > which folder would it reside in? ...
    (microsoft.public.word.docmanagement)