Re: TADOConnection.Close does not work



OK. BTW, my original post asked about TCustomConnection.DoDisconnect being
empty. I should, of course, have looked further than that. DoDisconnect is
a virtual method, overridden by TADOConnection.DoDisconnect, which calls
TADOConnection.ConnectionObject.Close. After that it calls code which, I'm
afraid, is beyond me.

My TADOConnection's Provider is "Microsoft OLE DB Provider for ODBC Drivers
(MSDASQL.1)". One of the first ODBC calls MSDASQL must make is to
initialize the ODBC environment: "SQLAllocHandle". This returns a handle.

Is there any way of getting at this handle through TADOConnection? (If
there is then I can call SQLDisconnect myself.)
I don't know of one.

Why do you want to use ODBC for SQL Server when there is a more capable OLE Db
provider for SQL server?
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.



Relevant Pages