CXX0030: Error: expression cannot be evaluated when connecting to SQL server
- From: "Tarscher" <tarscher@xxxxxxxxx>
- Date: 19 Jul 2006 06:57:50 -0700
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();
}
.
- Prev by Date: Re: dllregisterserver not registering com classes
- Next by Date: ToTitleCase
- Previous by thread: Re: pixel decimation
- Next by thread: ToTitleCase
- Index(es):