M
Mark Findlay
My C++ .Net project currently uses smart points for SQLDMO object
manipulation:
SQLDMO::_SQLServerPtr spSQLServer;
HRESULT hr = spSQLServer.CreateInstance(__uuidof(SQLDMO::SQLServer));
if (FAILED(hr))
{
return;
}
Is there a way I can acquire the SQLServer2 interface from the spSQLServer
object, instead of having to go through the CreateInstance procedure for
SQLServer2?
Given the following declaration, can someone describe how this could be
done?
SQLDMO::_SQLServer2Ptr spSQLServer2;
Thanks!
manipulation:
SQLDMO::_SQLServerPtr spSQLServer;
HRESULT hr = spSQLServer.CreateInstance(__uuidof(SQLDMO::SQLServer));
if (FAILED(hr))
{
return;
}
Is there a way I can acquire the SQLServer2 interface from the spSQLServer
object, instead of having to go through the CreateInstance procedure for
SQLServer2?
Given the following declaration, can someone describe how this could be
done?
SQLDMO::_SQLServer2Ptr spSQLServer2;
Thanks!