Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Scott*e #1
CFQUERY sql string
Hi,
Is it possible to get hold of the sql string from a cfquery after it has
executed? Particularly, is it possible to get it even if debug is turned off?
I have a particularly difficult search page, with mutliple table being
included / excluded , and different group-bys depending on paramters.... and
now the users want to print the page using Crystal Reports. My thoughts are to
pass the query string to a stored procedure, and base the crystal report on it.
using cfmx 6.1
cheers,
Scott*e Guest
-
Maintain query string and somehow auto refresh a pagewith that string intact
I have a drill down where on page one the user selects criteria to narrow down the search for a speicific group of employees(like all hired between... -
#7056 [Com]: Setting string variables to value starting with '<' cause string to be empty.
ID: 7056 Comment by: davidgjenkins at ntlworld dot com Reported By: tammy at synchronis dot com Status: Closed... -
string question: how to append x zeros to get fixed lenght string?
"Bob Barrows" <reb_01501@yahoo.com> wrote in message news:uuhVv4mcDHA.656@tk2msftngp13.phx.gbl... newstring = Right("0000000" & i,8) ;-p -
Cannot create an object of type 'System.String[]' from its representation 'String[] Array'
Hello, I am designing a .net custom control in VS.net 7.1 and my control exposes an array of strings which are supposed to be the items to show. To... -
String question: Returning portion of string with words surrounding highlighted search term?
I'm looking to find or create an ASP script that will take a string, examine it for a search term, and if it finds the search term in the string,... -
mxstu #2
Re: CFQUERY sql string
I haven't used this feature, but it is supposed to be possible in
[url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/[/url]
wwhelp.htm?context=ColdFusion_Documentation&file=0 0000316.htm
See :
result_name.sql
result_name.sqlparameters
mxstu Guest
-
Scott*e #3
Re: CFQUERY sql string
HI,
I too have heard this.
However, I am using cfmx 6.1.
Scott*e Guest
-
mxstu #4
Re: CFQUERY sql string
In the earlier versions, the only option was to set store the sql string in a
variable like
<cfset sqlString = "SELECT Something FROM SomeTable">
<cfquery ...>
#sqlString#
</cfquery>
[url]http://cfdj.sys-con.com/read/41898.htm[/url] discusses a slight variation of that
method.
As far as I know, there isn't a way to do this with CFQUERY pre-MX 7, but I
haven't really looked into it since 4.x so don't take my word for it ;-)
mxstu Guest
-
mxstu #5
Re: CFQUERY sql string
Check out the [url]http://www.cflib.org/udf.cfm?ID=686[/url] UDF at cflib.org
mxstu Guest
-



Reply With Quote

