@P_Var1 CHAR(10) = NULL,
SELECT *
WHERE Field1 = ' + @P_Var1 + '
AND Field2 = ' + @P_Var2 + '
EXEC(@VAR_SQL_String)
<cfstoredproc
procedure="ProcName"
datasource="#datasource#">
<cfprocparam type="In"
cfsqltype="CF_SQL_CHAR"
dbvarname="@P_Var1"
value="#Var1#"
null="No">
<cfprocparam type="In"
cfsqltype="CF_SQL_CHAR"
dbvarname="@P_Var2"
value="#IVar2#"
null="No">
<cfprocparam type="In"
cfsqltype="CF_SQL_CHAR"
dbvarname="@P_Var3"
null="No">
<cfprocresult name="MyQuery">
</cfstoredproc>
<cfcatch type="Database">
<cfinclude template="qryerr.cfm">
</cfcatch>
</cftry>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<title>Untitled</title>
</head>
<div align="center">
<font Face="arial">
<hr width="40%">
<h3>Database Error</h3>
<hr width="40%">
</font>
</div>
<font Face="arial">
<strong>Query/SP:</strong><br>
#SQLString#<p>
<strong>SQL State:</strong> #CFCATCH.SQLSTATE#<br>
<strong>Native Error Code:</strong> #CFCATCH.NATIVEERRORCODE#<br>
<strong>TYPE:</strong> #CFCATCH.TYPE#<br>
<strong>MESSAGE:</strong> #CFCATCH.MESSAGE#<p>
<strong>TAG Context</strong>:
<ul>
<cfloop index="contextLoop" from="1" to="#arraylen(cfcatch.tagcontext)#">
<cfset Curr_Tag_Stack = CFCATCH.TAGCONTEXT[contextLoop]>
<li><strong>#Curr_Tag_Stack["ID"]#</strong>, #Curr_Tag_Stack["LINE"]#, #Curr_Tag_Stack["COLUMN"]#, #Curr_Tag_Stack["Template"]#
</li>
</cfloop>
</ul>
<form>
<strong>DETAILS</strong>:<Br>
<TextAREA name="Detail"cols="50" rows="6">#HTMLEDITFORMAT(CFCATCH.DETAIL)#</TEXTAREA>
</form>
</font>
</body>
</html>
<cfabort>
</cfoutput>
--------Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur
Sent: Monday, 29 December 2003 10:41 AM
To: CFAussie Mailing List
Subject: [cfaussie] SP DebuggingAnybody there yet ;-))
What other ways are there to debug Stored Procedures in CF?
I have used
- SP Debugging in Query analyzer, i.e. did a cfdump of what gets passed from cf to the SP, no problems.
- Matched every parameter passed manually to the parameters in the SP (datatype etc.), could not find anything.
- double checked every cfprocparam of datatype INT (see error message below)I have been trying to debug this SP for a week now..
I keep getting
[Macromedia][SQLServer JDBC Driver][SQLServer]Error converting data type varchar to int.The error is clear, but it does not show me which value it is that it is having problems with.
What else can I do?Taco Fleur
---
07 3535 5072
Tell me and I will forget
Show me and I will remember
Teach me and I will learn
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
