We are trying to determine what is the best way to open a connection for an ADOMD.Cellset. I have seen sample code that uses ADODB.Connection on several occasions. We are using SQL Server 2000 Analysis Services with Visual Basic 6.0 DLL's in COM+.
We currently use the ADOMD.Catalog class which I realize has fewer parameters and only allows you to set the ActiveConnection. It does not allow you to explicitly open and close the connection. All of our DLL's are run within COM+ on the web server and therefore share Database connection pooling. In an effort to clean up our code and free up connections, I am looking to use ADODB.Connections and close them upon completion of each component process.
If anyone has knowledge of the pros and cons of each connection type, I would greatly appreciate your feedback.
Thanks in advance,
Gordon Radley
We currently use the ADOMD.Catalog class which I realize has fewer parameters and only allows you to set the ActiveConnection. It does not allow you to explicitly open and close the connection. All of our DLL's are run within COM+ on the web server and therefore share Database connection pooling. In an effort to clean up our code and free up connections, I am looking to use ADODB.Connections and close them upon completion of each component process.
If anyone has knowledge of the pros and cons of each connection type, I would greatly appreciate your feedback.
Thanks in advance,
Gordon Radley