Re: Wireless ADOConnection



"autumnSouth" <autumnsouth@xxxxxxxxxxxx> wrote in message
news:48231bc4$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Delphi 2007 for Win32 + MSSQL 2005 + Adoconnection (StayConnect is true)

we have a client application connected to SQL 2005 server using
Adoconnection + wireless network. The application disconnected from server
around every 5 mins and need restart to reconnect.

Ay suggestions on what's happening? StayConnect is true, and we have very
large timeout value.

That is part of the problem. There is no way for the TADOConnection to know
that it lost the database connection. One workaround is to set the
StayConnected property to false and re-connect for every transaction. ADO
connection pooling *should* help with re-connection performance.

Others have successfully created a background thread that 'pings' the server
(a simple Select GetDate() will do) and if the app cannot connect to the
database, it closes the connection and re-connects. If you have a lot of
wireless units, this may not be a viable solution (the DBA will be paying
you a visit :)

Take a look at http://www.fulltextsearch.com and search on ADO wireless,
lost connection, etc. Sorry, I couldn't find the thread with the example of
a TADOConnection descendent that performed the 'am I still connected?'
check, but I know it's there somewhere.

Good luck,
krf


.



Relevant Pages

  • Re: Wireless Print Server - Without Connecting to Router or PC
    ... connection, Layers 1 and 2. ... wireless end points are 'clients' to an access point. ... That also brings up the question of what's a client and what's a ... Kinda reminds me of the X11 server versus client and ...
    (alt.internet.wireless)
  • Re: Cant Connect Computers
    ... Configure Email and Internect Connection Wizard ... re-enable the wireless on the router, unplug the Ethernet cable to the ... server for the wireless NIC. ... How to configure Internet access in Windows Small Business Server 2003 ...
    (microsoft.public.backoffice.smallbiz)
  • Re: Low local transfer on WRT54GL router
    ... Router is connected to Internet via Cable modem. ... connected to this router - all of them via wireless connection. ... Connection to Internet works perfectly fine? ... Setup iperf or jperf as a server on one machine with: ...
    (alt.internet.wireless)
  • Re: Outgoing POP3 email missing/lost/not received
    ... Funny thing is that I have had this ISP for 8 years and it has always been ... It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect client to server 2003
    ... you need to reconfigure the IP schema of your SBS ... On the SBS 2003 Server open the Server Management console. ... On the Connection Type page, click Broadband, and then click Next. ... Alternate DNS server, type the IP addresses that are provided by your ISP ...
    (microsoft.public.windows.server.sbs)