Is there event or something that will detect a loss of connection in ADO, eg you are access a db which the network goes down, ADO has still got a connection state of 1, any ideas???
Thanks Guy, yes i agree tried using ado events, but as scorpio said this event is only kicked off if the connection is explicitly closed, sigh!!, i also was thinking along the lines of polling for a connection, but was hoping there was a easier why of handling it
ADo itself is pretty poor at dealing with this requirement. However, if you are using SQL Server 7, it may be worth checking out the SQL-DMO ActiveX library. it has a SQLServer object that supports a ConnectionBroken event. I suggest thoroughly checking the documentation on MSDN on this to get it to work properly...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.