> The knowledge barrier of C++ has been a difficult obstacle to overcome.
Well based on your description you are faced with much more than just C++. You are also taking on the burden of the Windows API, Windows SDK and a compiled language.
> I'm sending the CString into my DLL's function that actually makes the SQL call.
So, the string value is being passed through a chain of functions as a parameter. 'IF' data is being lost it can be occurring anywhere along the chain.
> explain why the shorter sql call works while the longer one does not
Without seeing and possibly running and modifying the code that may be impossible to determine.
> It is possible that this call is limiting me. I will check that on Monday.
'check that', Yes that is the attitude. Spending more than a few moments attempting to speculate what, where and when something is going wrong is a waste of time.
You need the ability to debug or log at every point within your code. This way you can 'absolutely' determine the cause by placing breakpoints and/or logging calls at the points in question. Thereby, examining the runtime state of your code and methodically arriving at the problem point.
"But, that's just my opinion... I could be wrong".
-pete