While it may work, this is a very odd use of a CString object. I'm curious why you are using a CRecordset object if all you need access to is its m_hstmt member.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow