<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have a table with forty fields. I use a single Z 
SQL Method, from different places in my code, passing different 
parameters.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;params&gt;AccountId 
ControlClientId:optional&nbsp;</FONT><FONT face=Arial 
size=2>&nbsp;Mobile:optional </FONT><FONT face=Arial 
size=2>&lt;/params&gt;<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>update MyAccount </FONT></DIV>
<DIV><FONT face=Arial size=2>set<BR>&nbsp;&nbsp;&nbsp; &lt;dtml-if 
ControlClientId&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ControlClientId = 
&lt;dtml-sqlvar ControlClientId type=int&gt;,<BR>&nbsp;&nbsp;&nbsp; 
&lt;/dtml-if&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;dtml-if 
Mobile&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Mobile = &lt;dtml-sqlvar 
Mobile type=string&gt;,<BR>&nbsp;&nbsp;&nbsp; 
&lt;/dtml-if&gt;<BR>&nbsp;&nbsp;&nbsp; accountid = &lt;dtml-sqlvar accountid 
type=int&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>where </FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; accountid = &lt;dtml-sqlvar 
accountid type=int&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When I pass in an empty 'Mobile', the above code 
does not distinguish this from an empty string, and the database column is not 
updated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Can I detect whether an string was passed in, even 
if it is empty?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in Advance</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Kevin</FONT></DIV></BODY></HTML>