我是用如下方法执行SQL语句,编译通过,但运行时就出错,请各位指教!_CommandPtr        m_pCommand;
m_pCommand.CreateInstance(__uuidof(Command));
m_pCommand->ActiveConnection = m_pConnection;  // 将库连接赋于它
m_pCommand->CommandText = "SELECT * FROM mytable";  // SQL语句
m_pRecordset = m_pCommand->Execute(NULL, NULL,adCmdText);