> >This is not an SP per se, it is just how SQL handles these dynamic SQL > >strings. > > > > Upon further research this is a SP.
sp_prepare() and sp_execute() are "system stored procedures" which respectively prepare and execute the SQL. The SQL code from your cfquery does not become a stored procedure, it's just a batch of SQL. When you use cfqueryparam, SQL server uses this execution model (aka "prepared statements"). I haven't checked this, but presumably if you're seeing the call to sp_execute(), you should be seeing the sp_prepare() as well, which will let you make the link between SQL code and parameter values. Nick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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/cf_lists/message.cfm/forumid:4/messageid:246910 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4