Re: Adding record error ???

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Darren Shaffer (darrenshaffer_at_discussions.microsoft.com)
Date: 10/25/04


Date: Mon, 25 Oct 2004 08:15:40 -0600

Simon,

That HRESULT is explained here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;192141
but I haven't seen that before with SQL CE, so without seeing your
code and schema, it's hard to help you.

One tip - be sure you're using a parameterized query if you're
inserting/updating 500 records in a loop - it'll be 3-5x faster.

-Darren

"Simon Says" <tengsimon@hotmail.com> wrote in message
news:ed7TI4juEHA.1292@TK2MSFTNGP10.phx.gbl...
> Dear all,
>
> I tried to add in 500 records (all same values) continuously just for
> brenchmarking purposes, but everytime it stops at 139th record with an
> sqlceException. The exception contains no message, but has an HResult
> = -2147024882. Anyone know what it means?
>
> --Simon Teng
>
>



Relevant Pages

  • Re: SQL CE - -2147024882
    ... The HResult value tells all: ... I have a problem executing a query against a SQLSERVERCE 2.0 ... Native error: 0 ... Microsoft SQL SERVER 2000 Windows CE Edition ...
    (microsoft.public.sqlserver.ce)
  • Re: Common error codes for ADO & DMO
    ... For DMO I am using the IDispatch pointer and converting the EXCEPINFO->wCode ... to HRESULT. ... > The error codes I am getting for errors like SQL server not available, ...
    (microsoft.public.sqlserver.programming)
  • Re: Adding record error ???
    ... Catch e As SqlCeException ... is my code consider as parameterized query? ... The exception contains no message, but has an HResult ...
    (microsoft.public.sqlserver.ce)