Hi
I am trying to connect to SQL server data base using NT authentication
from my window service code.
_bstr_t bstrConn =
_bstr_t("PROVIDER=SQLOLEDB;SERVER=SD1;DATABASE=MEDICAPT;TRUSTED_CONNECTION=YES;");
m_pConnGenGuiDB->ConnectionString = bstrConn;
m_pConnGenGuiDB->CommandTimeout = 600;
m_pConnGenGuiDB->Open("","","", adConnectUnspecified);
I am getting error Description = Login failed for user 'NT
AUTHORITY\SYSTEM'
The same code works fine in any MFC application.
Any body have clue abt that