If I run a stored procedure that takes 5 minutes to complete, will my code sequence continue before the stored procedure is complete?
<p>If I have a program that runs a stored procedure that takes about 5 minutes to run, for example:</p>

<pre><code>Database.RunJob(); -- takes 5 mins to complete
MessageBox.Show("Hi");
</code></pre>

<p>Question - is the message box going to show "Hi" <strong>BEFORE</strong> Database.RunJob() is complete?</p>

<p>If it does, how do I make sure a query is complete before proceeding to the next line of code?</p>
