Hi all,

I try to connect to a SQL database and get a 'CXX0030: Error:
expression cannot be evaluated' due to the connection->Open function.
The connection string was verified and therefore should work. I have no
real idea where the problem is situated...

I hope someone can help me out. Thanks in advance.

Stijn

try
{
m_hr = connection.CreateInstance(__uuidof(ADODB::Connection));
connection->CursorLocation = ADODB::adUseClient;
connection->Open(L"Provider=SQLOLEDB.1;Integrated
Security=SSPI;Initial Catalog=testing;Data Source=.",L"", L"",
ADODB::adConnectUnspecified);
}
catch (_com_error &e)
{
e.Description();
}