I figured it out. Thanks for the assistance. A helpful link
is
http://support.microsoft.com/?kbid=229088&sd=msdn
I did the following which works:
m_variant.ChangeType(VT_NULL);
cmdPtr->Parameters->Append(cmdPtr->CreateParameter(bstr_t(m_name), ADODB::adBSTR, ADODB::adParamInput, m_length...
I am not sure how to set a value to null. I am using code like this:
cmdPtr->Parameters->Append(cmdPtr->CreateParameter(bstr_t(m_name), ADODB::adBSTR, ADODB::adParamInput, m_length, parameter->m_variant));
How do I add a NULL parameter?
intersan
I am writing a C++ application using ADO to manage an SQL Server dbase.
The database is set to compatibility version 80.
If I set an nvarchar field to an empty string ""; it is stored in the dbase as a
single space string: " ". I need it to be an empty string in the dbase so I can distinguish...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.