SQL Server - Fatal error with select stmt

Asked By Scott
06-Jul-07 03:32 PM
Our Windows Mobile 5 application bombs when SQL Server Mobile Edition
3.00.5206.00 throws a message:
ExceptionCode: 0xc0000005
ExceptionAddress: 0x0125aa68
Reading: 0x005ef000

The query (below) is generated dynamically (may be one or more filter
clauses, hence 'WHERE 1=1' is always generated and the AND clauses are
appendeded as appropriate.

Really odd: When I run this in Query Analyzer on the device, it also blows
up when run as-is.  However, if I comment out any of the AND clauses, then
run (I get a result set) then uncomment the clause and now run the original
query, it works!  If I disconnect and reconnect and run the full query again,
boom.

SELECT	DISTINCT s.supplier_id, s.supplier_name, s.phone, s.fax, s.email,
s.contact_name, s.address1, s.notes
FROM        insp_defect d
INNER JOIN supplier s ON d.assigned_supplier_id = s.supplier_id
INNER JOIN job j ON d.job_id = j.job_id
INNER JOIN job_user ju on j.job_id = ju.job_id
LEFT OUTER JOIN job_task jt ON d.task_id = jt.task_id
WHERE 1=1
AND ju.user_id = 176
AND j.subdivision_id =19
AND j.status = 'A'
AND jt.task_status in ('B', 'D')

Any help would be greatly appreciated (hate to use my support incidents so
quickly).

Scott
SQL Server
(1)
INNER JOIN
(1)
Database
(1)
ExceptionAddress
(1)
ExceptionCode
(1)
ScottB
(1)
Windows
(1)
Incidents
(1)
  Pragya Agarwal [MSFT replied...
18-Jul-07 05:24 AM
Scott,

I tried to reproduce your problem with Northwind database, but
unsuccessfully. If you can give a sample database that i can work on, it will
help diagnose the problem faster. You can mail me at pragya dot agarwal at
microsoft dot com.

The query i used was:
SELECT
DISTINCT   s.[supplier id], s.[company name],
s.phone, s.fax, s.[contact name], s.address
FROM products d
INNER JOIN suppliers s ON d.[supplier id]= s.[supplier id]
INNER JOIN [order details] j ON d.[product id]= j.[product id]
INNER JOIN orders ju on j.[order id]= ju.[order id]
LEFT OUTER JOIN categories jt ON d.[category id]= jt.[category id]
WHERE 1=1
AND ju.[employee id]= 1
AND j.[unit price] =13
AND j.quantity= 30
AND jt.[category name] in ('beverages', 'seafood', 'condiments')

Thanks
-Pragya
Create New Account
help
Cannot restart SQL Server service SQL Server I recently installed SQL Server 2008 Express Edition with Advanced Tools. This is the version information from SQL Server Management Studio Microsoft SQL Server Management Studio 10.0.1600.22 ((SQL_PreRelease).080709- 1414 ) Microsoft
MSDE on Windows 2003 R2 box, new DL385G6 - Install Fails during SQL Services SQL Server I have been finding that I am having trouble with the Crystal Reports Server XI installation failing when it is dealing with SQL. So, as a thought and in case there was something wrong with my SQL portion of the isntall. I thought ok, I will try installing the actual MSDE application direct from Microsoft. So, I downloaded the MSDE for SQL 2000 (which is msde2000a.exe), set my switches and off to the races. It quit seconds left to the installation and bombed with the same errors as the Crystal Reports Server install. The error is the same whether I try to install MSDE by itself or
Why_can’t_recursive_queries_contain. . .? SQL Server hi I hope I didn = 92t put too many questions 1) Why can = 92t recursive queries also be unioned together with UNION operator ( instead they must use UNION ALL )? thanx SQL Server Programming Discussions SQL Server 2008 (1) SQL Server 2005 (1) SQL Server 2000 (1) SQL Server (1) Oracle (1) Ruby (1) MichaelcoAToptonlineDOTnet (1
KB948110 / MS08-040, SQL 2000 & sa authentication SQL Server Hi everyone, I'm having an issue installing KB948110 / MS08-04 security patch for SQL Server 2000 Standard. I'm getting the message: 1 or more SQL Server instances could not verify your account information when I provide sql authentication details when installing this patch. We have installed SQL Server 2000 STD on a
SQL Express: Failed Reinstall SQL Server Dear Setup Experts: I am trying to reinstall SQL Express after playing with it some. I uninstalled it, and now, it refuses to reinstall in the face. Any ideas what this log file means and how I can get SQL Express installed? I really do not want to have to reinstall my whole system. * ** ** Start of Log File Overall summary: Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup. Exit code (Decimal): -2068643839 Exit facility code: 1203