I have a stored procedure that contains several validity checks and raises
an error message if it finds it otherwise it updates the record, such as:
If @Phone is NULL
Select @ErrMsg = @ErrMsg + 'Phone Required. '
If Len(@ErrMsg) > 0
Begin
Raiserror (@ErrMsg, 16, 1)
Return 1
End
I call the stored procedure in ColdFusion, using CFStoredProc tag, such as:
<cfStoredProc Username="XXX" Password="YYY" datasource="Source"
Procedure="ZZZ">
<cfprocparam type="in" cfsqltype="cf_sql_char" dbvarname="@Code"
value="ddd">
<cfprocparam type="in" cfsqltype="cf_sql_char" dbvarname="@Phone"
value="(217) 444-4444">
<cfprocresult name="UpdateGovInfo">
</cfstoredproc>
MY QUESTION: How can I capture the @ErrMsg used in my SQL Stored Procedure
in the CFStoredProc tag?
Gary 8-)
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists