Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>(From the comments)</p> <p>Looks like it does have optional parameters. So your <code>cfstoredproc</code> call may not be passing in the values you think it is. Based on the order, it looks like it is actually passing in values for: <code>@CityZipID, @Sic, @lastRank</code>. As Dan mentioned (and I hinted at), cfstoredproc uses positional notation for parameters (<a href="http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_p-q_14.html" rel="noreferrer">@dbVarName is deprecated</a>). You need to supply all of the parameter values <em>in the correct order</em>. </p> <p><strong>Update:</strong></p> <p>FWIW, if you create a shell procedure you would see the cfstoredproc and cfquery are actually invoking the procedure with different parameters/values. (See below). </p> <p>You would definitely see a difference in results if you invoked the procedure without the named parameters as @Dan suggested ie <code>exec rankingresults 8652, 50, 53</code>. (I know you said there was "no change", but there was probably just an error in your test).</p> <p><strong>CFSTOREDPROC</strong></p> <pre><code>@ATTRCODES|@CITYZIPID|@DISTANCE|@HASURL |@ISFEATURED |@LASTRANK|@PHOTOCOUNT|@REVIEWCOUNT |@SIC|@SICBUDGETIDS (nothing)| 8652| (nothing)| (nothing)| (nothing)| 53| (nothing)| (nothing)| 50| (nothing) </code></pre> <p><strong>CFQUERY</strong></p> <pre><code>@ATTRCODES|@CITYZIPID|@DISTANCE|@HASURL |@ISFEATURED |@LASTRANK|@PHOTOCOUNT|@REVIEWCOUNT |@SIC|@SICBUDGETIDS (nothing)| 8652| 50| (nothing)| (nothing)| 0| (nothing)| (nothing)| 53| (nothing) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload