

Brainbench is a site dedicated for online testing. There are some free tests which I have done some time ago. My transcript id is 6941773
Microsoft Dynamics Ax developer's blog



if @SQLTime>0  -- <<<<<<<<<<<<<<<< the fix
               begin
               INSERT INTO @BreakdownInformation
               SELECT (sum(PrepDuration) * 100)/@SQLTime [% of time in SQL Prep],(
sum(BindDuration) * 100)/@SQLTime [% of time in SQL Bind],
(sum(RowFetchDuration) * 100)/@SQLTime [% of time in SQL Row Fetch],
(sum(ExecuteDuration) * 100)/@SQLTime [% of time in SQL Execution]
                               from SqlQueryInstance
                               WHERE traceId = @Traceid AND sessionid = @sessionid
       end  -- <<<<<<<<<<<<<<<< the fix
               RETURN<script type="text/javascript" src="highlight.js"></script>
 <script type="text/javascript">
   initHighlightingOnLoad('axapta');
 </script><pre><code class="Axapta">
// your code here
</code></pre>