|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Opens a new session for the data source object.
HRESULT Open( const CDataSource& ds, DBPROPSET *pPropSet = NULL, ULONG ulPropSets = 0 ) throw( );
[in] The data source for which the session is to be opened.
[in] The number of DBPROPSET structures passed in the pPropSet argument.
You must open the data source object using CDataSource::Open before passing it to CSession::Open.