Re: DB_E_ERRORSINCOMMAND Exception(_com_error:: 'vtable')
- From: "Joćo Paulo Figueira [eMVP]" <joao.figueira@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 8 Nov 2005 08:59:28 -0000
What is the type of "queryStr"? If it's a char*, you must change it to
TCHAR* because Windows CE does not accept (except in very rare cases) ANSI
strings, only UNICODE.
--
João Paulo Figueira
Embedded MVP
http://nativemobile.blogspot.com/
"Prince" <princevictor.moses@xxxxxxxxx> wrote in message
news:1131429857.673774.47040@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi...
>
> In Embedded VC,While I execute an insertion query I am getting
> 'DB_E_ERRORSINCOMMAND' exception but the same query gets executed in
> Query Analyzer and connection string is correct..
> Wats the problem???
>
> Statements :
>
> queryStr = "INSERT INTO resalloc "
> "(BaseLineId, "
> "Restype, "
> "subType, "
> "ResId, "
> "schObjId, "
> "startDtm, "
> "endDtm, "
> "PlnorAct) values "
> "('', "
> "'PERSON', "
> "'" + bstrRoleId + "', "
> "'" + bstrResId + "', "
> "'" + bstrNewId + "', "
> "'" + bstrPlndStart + "', "
> "'" + bstrPlndEnd + "', "
> "'P')" ;
>
>
> pConn->Execute(queryStr, NULL, adExecuteNoRecords);
>
>
>
>
> Looking forward for the reply...
> Thanx in advance...
>
>
> Regards,
> Prince
>
.
- Prev by Date: Re: Mobile Server Tools
- Next by Date: Re: Can you convert .mdf to .sdf
- Previous by thread: Doubt about performance insert at eVC++ with T-SQL Command or Table Direct
- Next by thread: Re: Problems with CE on newer platform
- Index(es):
Relevant Pages
|