House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Server (CF-Server)

ColdFusion stored procedure question

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
daniel kessler
03/04/2011 01:29 PM

I posted this on CF-talk, so sorry for the double-post, but I wasn't getting any response there and this is as much a server question as not. ---------- I have a page with a stored procedure on it.  After the stored proc runs, I have a database call to set some variables.  The variables aren't getting set in the database occasionally.  It also seems that the stored procedure, before the variables are set, times out at occasionally, according to the logs.  If a stored procedure times out, should the rest of the script run?  I don't know if that's the cause of the stored proc is timing out.  Maybe the cf page is timing out from the stored proc timing out. I have no access to the server that is having the problem because it's in production. thanks for any information.  back to googling.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mark Ireland
03/04/2011 06:58 PM

Can you get a test page into production? You might need to find out if its only this stored procedure that is timing out. Can you run a conventional query that does the same thing and test it? ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
daniel kessler
03/07/2011 11:31 AM

>Can you get a test page into production? > >You might need to find out if its only this stored procedure that is timing out. > >Can you run a conventional query that does the same thing and test it? I can not get a test page onto production.  I know that it's running half way through the page fine because data is updated in those update sql scripts.  After that, there's a bunch of if/else statement.  The first thing in each of those if/else statements is this stored procedure.  There is information that should be updated after that stored procedure, none of which are being updated.  This led me to the stored procedure as the possible culprit. Still, what is the expected action of the page if the stored procedure times out? I know I can set a timeout to a query, but not to a stored procedure.  If it does time out, what happens to the rest of the cold fusion page?  I'm trying to determine the reason that the rest of the fields aren't being updated. thanks!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mark Ireland
03/07/2011 06:17 PM

It sounds like the code is written to not fail if the procedure does. CF normally just waits for the dB to return something. Your guess about the timeout could be correct and you may need to see what the dB is doing when it should be completing your procedure. I could only be more definite if I had a test setup that imitated your production server and dB People write this 'silent fail' type of code all the time when they think they dont have to own the problem that is causing the failure. (e.g. maybe the dB admin needs to look at backups to see if they hog resources just when your proc needs them) ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
daniel kessler
03/07/2011 11:32 AM

also, the problem is not regular, just sporadic.  The problem occours maybe 20 times out of 10,000. daniel


<< Previous Thread Today's Threads Next Thread >>

Search cf-server

May 21, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference