"Isa" <Isa@discussions.microsoft.com> wrote in message
news:1282A15E-7F7C-4E04-A751-D01E996B694B@microsoft.com...
I hope this helps. My 'normal' function to bind a string checks
for a string length of zero (empty string). If that's the case,
it calls NullString() as shown below. It may just be that your
Length/Indicator parameter has to be set to SQL_NULL_DATA.
void VParameter::NullString( void )
{
SQLRETURN rc;
m_LenInd = SQL_NULL_DATA;
rc = SQLBindParameter( m_hStmt, m_paramNumber,
SQL_PARAM_INPUT,
SQL_C_CHAR, SQL_CHAR, 1, 0, 0, 0, (SQLLEN *)
&m_LenInd );
CHECK_STMT( m_hStmt, rc );
}
HTH,
- Arnie
|