c# - Difference between AdomdConnection and AdomdCommand classes -


my understanding adomdconnection initializes connection remote database. class opens based upon connectionstring. adomdcommand seems capable of setting commandtext , executing said command, similar executing query.

is understanding correct? how 2 related? initialize adomdconnection, initialize adomdcommand.connection value? how adomdcommand knows open connection use or database in?

i have been using these 2 sites reference:

https://msdn.microsoft.com/en-us/library/microsoft.analysisservices.adomdclient.adomdconnection.aspx

https://msdn.microsoft.com/en-us/library/microsoft.analysisservices.adomdclient.adomdcommand.aspx

you can either use createcommand() connection object, command connection property set connection created, or create command separately (new adomdcommand()) , set connection property.

either approach work.

actual connection database, not happen when create connection object rather not until call open() method on connection object.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -