Re: Reliably reproducing Native Exception 0xc0000005 on SQL CE 2.0



Yes, I can consistently recreate that as well. I ran a compact on your
database
and that didn't help either. Not that it shouldn't work, but why are you
appending GUIDs together in a single column (your concept of asset type
path)?
Why wouldn't this path be inherent in your logical data model?

This query will never run efficiently given that it is non-optimizable -
you have a subquery, a group by, and a LIKE in a single query. The
SQL CE QP is not going to be able to optimize that stmt.
--
Darren Shaffer
..NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com


"Ken" <kmsuzuki@xxxxxxxxx> wrote in message
news:1112948356.103543.67450@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I am reliably reproducing the ExceptionCode 0xc0000005 native exception
> on SQL CE 2.0 simply by issuing a particular SELECT statement against
> it. If I issue the statement through ADO.NET, I get the Native
> Exception window that displays ExceptionCode (among other things)
> before the app crashes to the desktop. If I run the statement in the
> Query Analyzer tool, it hangs the tool reliably but no Exception is
> reported.
>
> ------------------
> Environment Info
> ------------------
> SQL CE 2.0.4415.0
> .NETCF 1.0.3316.00
> PocketPC 3.0.11171 Build 11178 (on both ARM and X86)
>
>
> --------------------------
> SQL CE 2.0 database file
> --------------------------
> http://snice.net/AssetTrackMobile.sdf
>
>
> ------------------------------------------
> SQL Statement that causes Native Exception
> ------------------------------------------
> SELECT
> ProductSummary.ProductID,ProductSummary.Name,ProductSummary.Number,ProductSummary.ManufacturerID,ProductSummary.ManufacturerName,ProductSummary.AssetTypeID,ProductSummary.AssetTypeName,ProductSummary.DateCreated,ProductSummary.DateModified,ProductSummary.Status,ProductSummary.AssetTypeLineage
>
> FROM ProductSummary
> WHERE (ProductSummary.AssetTypeID IN (
> SELECT AssetType.AssetTypeID
> FROM AssetType
> WHERE (AssetType.Path LIKE
> '%86171b60-72f7-4b74-96e4-dc1ef32f3f73>%')))
> ORDER BY ProductSummary.Number ASC
>
>
> Oddly enough, omitting the ORDER BY clause allows the statement to run
> without raising the NativeException.
>
>
> If there's someone who is familiar with this problem, I'd appreciate
> any insights. I've seen a few people from the SQL CE group at MS
> interested in reliable repro please let me know if I can provide
> further information on this.
>
> Regards,
>
> Ksuzuki AT gmail DOT com
>


.



Relevant Pages

  • Re: Database for a WM5 device
    ... It sounds like I can use SQL CE on my WM5 device. ... .CreateDatabase line is generating an exception and I cannot figure out ... CE database on the desktop. ...
    (microsoft.public.pocketpc.developer)
  • Reliably reproducing Native Exception 0xc0000005 on SQL CE 2.0
    ... I am reliably reproducing the ExceptionCode 0xc0000005 native exception ... on SQL CE 2.0 simply by issuing a particular SELECT statement against ... Query Analyzer tool, it hangs the tool reliably but no Exception is ...
    (microsoft.public.sqlserver.ce)
  • Ken
    ... I am reliably reproducing the ExceptionCode 0xc0000005 native exception ... on SQL CE 2.0 simply by issuing a particular SELECT statement against ... Query Analyzer tool, it hangs the tool reliably but no Exception is ...
    (microsoft.public.sqlserver.ce)
  • Re: Error Message for Logon
    ... Your web site is setup for anonymous logon, ... your connection to the database is set to use SQl Integrated Security. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.dotnet.security)
  • SQL2k5 : Login failed for user KLEOASPNET
    ... Visual Web Dev) and, MS SQL 2005 with a database with ... send a query to the database. ... An unhandled exception occurred during the ... for the SQL Server. ...
    (microsoft.public.sqlserver.server)