Re: Reestablish broken connection after sleep
From: Mary Bray (reply_at_tonewsgroup.com.NOSPAMPLEASE)
Date: 11/27/04
- Next message: Val Mazur: "Re: binding dataset"
- Previous message: Kevin Yu [MSFT]: "Re: Peculiar slow jpg download from website with adodb.stream over ssl on IE"
- In reply to: Michael Tissington: "Reestablish broken connection after sleep"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 27 Nov 2004 15:19:51 +1100
This is actually not a good design. It is generally much better to only keep
the connection open for the time taken to retrieve the data, then close it.
If you are using persistent recordsets and are not making them client-side
and disconnected then you don't really have a good solution for the
environment (as you have discovered.)
-- Mary Bray [SQL Server MVP] Please reply only to newsgroups "Michael Tissington" <michael@nospam.com> wrote in message news:%23BPAB1B1EHA.2856@TK2MSFTNGP15.phx.gbl... >I have an application on a laptop that runs with several ADO objects open >at a given time (Connection, Recordset etc) - most all use client side >cursor. > > The database is on another machine. > > If the application is running (sitting idle) and the laptop goes to sleep > and then resumes, all the ado objects are no longer valid - because the > connection object is broken. > > Is it possible to monitor for an event on the connection object and re > establish it when the computer resumes so that any associated objects are > still valid? > > Thanks > > -- > Michael Tissington > http://www.oaklodge.com > http://www.tabtag.com > > >
- Next message: Val Mazur: "Re: binding dataset"
- Previous message: Kevin Yu [MSFT]: "Re: Peculiar slow jpg download from website with adodb.stream over ssl on IE"
- In reply to: Michael Tissington: "Reestablish broken connection after sleep"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|