Comments in SQL statement

  • Thread starter Thread starter lavu
  • Start date Start date
L

lavu

I am using VC++ in .NET 2003. Using a SQL ODBC connection to Sybase to
execute sql statements.
If I have commented out a part of the SQL , I get an syntax error from
the ODBC connection. I am using the Execdirect call.
However this statement runs fine on the direct interface to sybase
"dbisql".

Am I doing something wrong here ? I would appreciate any help here.
 
Never mind. I realised my parser was stripping out the new line
characters so the comments
appeared like valid SQL to the DB engine.
 
Back
Top