# Server Crash

**URL:** <https://forum.inductiveautomation.com/t/server-crash/11695>\
**Category:** Ignition\
**Created:** [May 18, 2016, 8:39pm UTC](https://forum.inductiveautomation.com/t/server-crash/11695 "2016-05-18T20:39:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boster281](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@boster281](https://forum.inductiveautomation.com/u/boster281)\
**Post date:** [May 18, 2016, 8:39pm UTC](https://forum.inductiveautomation.com/t/server-crash/11695/1 "2016-05-18T20:39:35Z")

</div>

I am wondering why the following code crashed my server?

`SELECT *
FROM LoadTestTrend
inner join [Thermoplastics].[dbo].[LoadTestResults]
on [Thermoplastics].[dbo].[LoadTestTrend].LoadTester = [Thermoplastics].[dbo].[LoadTestResults].LoadTester
Where [Thermoplastics].[dbo].[LoadTestTrend].T_STAMP between (SELECT Start FROM LoadTestResults Where Key_NDX = {Root Container.RecipeNdx}) AND 
		(SELECT Stop FROM LoadTestResults Where Key_NDX = {Root Container.RecipeNdx})
Order By [Thermoplastics].[dbo].[LoadTestTrend].T_STAMP`

I was using this code in a report data sqlquery

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [May 19, 2016, 1:07am UTC](https://forum.inductiveautomation.com/t/server-crash/11695/2 "2016-05-19T01:07:31Z")

</div>

what happens if you run it in your databases management studio? How many rows does it return?

---

<div class="post-metadata">

**Author:** ![boster281](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@boster281](https://forum.inductiveautomation.com/u/boster281)\
**Post date:** [May 19, 2016, 12:53pm UTC](https://forum.inductiveautomation.com/t/server-crash/11695/3 "2016-05-19T12:53:36Z")

</div>

It returns 111 rows 0 sec.  
Would the brackets cause an issue?  
Also it won’t work unless i have it like the following in management studios.

`SELECT *
FROM [Thermoplastics].[dbo].[LoadTestTrend]
Where T_STAMP between (SELECT Start FROM [Thermoplastics].[dbo].[LoadTestResults] Where Key_NDX = 34922) AND 
(SELECT Stop FROM [Thermoplastics].[dbo].[LoadTestResults] Where Key_NDX = 34922) and loadtester like 165
Order By [Thermoplastics].[dbo].[LoadTestTrend].T_STAMP`
