Try to connect to my Database. Initial Catalog = WEBDB ; DS = MSM20042\SQL2000 and Provider OLE DB to SQL. But if I try to check these above code it throws an exception. Runtime Error. I`m able to connect via Microsoft ADO Data Controller (ActiveX O.)Oh forget that I use Microsoft Windows NT integrated security.
Where is the mistake?
_bstr_t strConnect = _T(„Provider=sqloledb;Data Source=MSM20042/SQL2000;“„Initial Catalog=WEPDB;“„Integrated Security=SSPI;“);
pConn->Open(strConnect, „Integrated Security=SSPI;“, „Integrated Security=SSPI;“, adOpenUnspecified);