_ConnectionPtr pCon(__uuidof(Connection));
pCon->ConnectionString="MSSQLSERVER;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Student"; 请问此链接字符串应该如何书写,我用的本地数据库windows 身份验证模式 数据库服务器名字是RW6YXGLAY8R6JMB 数据库名称是student ,望高手指点
嗯 谢谢,当执行到这一句的时候hr = this->m_pConnection->Open( (_bstr_t)sql,"","",adModeUnknown);
出现了如下错误提示
这是为什么呢 ?
你是不是没有初始化com组件
追问可以加你q吗?我发现字输入多了,百度知道不能提交提问。
追答972252951,先给我采纳了,我刷点分