Ask a Question related to Coldfusion Database Access, Design and Development.
-
carmenreed23 #1
Passing null into a stored procedure
I have a survey form with both checkboxes and radio buttons... when storing the
form, there are occassions that I need to store a NULL in the DB and therefore
must pass a NULL as that parameter's value. However, I keep getting error
messages.
Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver][SQLServer]Cannot use empty object or
column names. Use a single space if necessary.
Here's my code (call to stored procedure):
<cfquery name="storeSurveyResults" datasource="reports">
exec drb_Mkt130StoreSurvey #url.Contract_ID#, #SalesPerson_Id#,
#ProductionPerson_Id#, #LenderID#, #LenderContactID#, #SettleID#,
#SettleContactID#, #CustomerSvc_ID#, #Recommend#, "#Recommend_Comment#",
#DRBOverall#, #SQ1#, #SQ2#, #SQ3#, #SQ4#, #PQ1#, #PQ2#, #PQ3#, #PQ4#, #LQ1#,
#LQ2#, #LQ3#, #SCQ1#, #SCQ2#, #SCQ3#, #CSQ1#, #CSQ2#, #CSQ3#, #CSQ4#,
#Market1#, #Market2#, #Market3#, #Market4#, #Market5#, #Market6#, #Market7#,
#Market8#, "#Market8_comment#", #Why1#, #Why2#, #Why3#, #Why4#, #Why5#, #Why6#,
#Why7#, "#Why7_Comment#"
</cfquery>
carmenreed23 Guest
-
passing values to stored procedure
Hello Can some please let me know how can I pass value to the following stored procedure from coldfusion template. It is written in different... -
VB.NET, Stored procedure, NULL
Hi Help with this problem would be appreciated. I have a stored procedure with default NULL parameters which should allow all items to be... -
NULL in search stored procedure, VB.NET
Hi I am using a stored procedure to search a single table with "COALESCE(@param,param)" but the NULL default value is being ignored. I think... -
#19841 [Opn->Fbk]: RPC stored procedure with many columns return null value
ID: 19841 Updated by: sniper@php.net Reported By: tonyho at fairex dot com -Status: Open +Status: ... -
Passing arrays to a stored procedure
http://www.aspfaq.com/2248 http://www.algonet.se/~sommar/arrays-in-sql.html http://www.algonet.se/~sommar/dynamic_sql.html "Doug Eller"... -
cjeris #2
Re: Passing null into a stored procedure
Use <CFSTOREDPROC> to run the procedure and <CFPROCPARAM> with the attribute
setting null="true" to pass a null as an argument. You should be using
<CFQUERYPARAM> or <CFPROCPARAM> for arguments anyway.
cjeris Guest



Reply With Quote

