用Ado可以查询master中的表吗?
strConn="Provider=sqloledb;Data Source=;Initial Catalog=master;Trusted_connection=Yes;User Id=;password=;"
USES_CONVERSION;
LPCWSTR str0 = A2W(strConn);
//AfxMessageBox(strConn);
pConn->Open(str0,"","",-1);
strSqlCheck = "SELECT name FROM sysdatabase"
LPCWSTR str1 =A2W(strSqlCheck);
pRst->Open(str1, _variant_t(pConn),adOpenDynamic, adLockOptimistic, adCmdTable);
执行时为什么总是提示类型不匹配!