Interesting topic, eh? As long as the SP doesn't get recompiled, the SP should be somewhat faster than plain CF query. SP coded in T-SQL or the powerful PL/SQL can save you lots of time doing the same thing in CF too. But when it goes to deployment, it will take more steps for just to upgrade your code.
But i guess this is much depends on the hardware/system architecture also. Consider this: 1. Having 3 CF server running on cluster vs 1 DB server. Which will be the most fast/resource optimized? Put all queries and process in CF machines or in 1 DB? IMHO, should be better to put them in CF machines. 2. Having 1 CF server vs 3 DB running on cluster/grid (not a standby-failover). Should be better on the DB now... Well, i think sometime SP is overlooked, ppl wants to move query to sp. But process-tuning instead of SQL tuning may be the better alternative. Rizal At 07:42 AM 28/08/2006, you wrote: >I am not sure that I am seeing a valid argument to have ad hoc queries in >CF. > >Even for small queries, the execution time will typically always be faster >executed from a databse like MS SQl, Oracle ..etc than from the CF server. > >As for contractors waiting for the copy of the stored procedure, the DBA >should has assigned the roles to the contractors to have read access to the >database so they can view the SPs. Plus, you can each cotnractor copy the >databse locally and test locally before asking for the DBA to commit a >solution. > >For the deployment of the stored procedures, ths can be achieved pretty >easily with generated scripts. It is not uncommon to just copy the sql >necessary to update, backup and deploy all of your stored procedures very >quickly. > >Teddy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251202 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

