Introduction
Your can write SQL which reads good, like this:
create table tablename (
fieldname text(255),
content text(255));
Comments in SQL statements sent through ADO will sometimes error out in ADO when ADO tries to parse it. By stripping out the comments, you have both documented SQL code and you don't get any errors when you try to use the commented code within your ADO application. Then use these SQL saved in files directly!
How to use it?
Declare the function in any .h file of your project:
int ClearSQLComment(LPCTSTR lpSQL,CString &rString);
and use it:
CString strText,strSQL;
LoadTextFromFile(lpFileName,&strText);
ClearSQLComment(strText,strSQL);
Connect.Execute(strSQL,&affected,adCmdText);
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.