Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

error C2146: syntax error : missing ';' before identifier 'sql'

$
0
0

Hi

I am migrating my application from vc++6.0 to vc++2013 . I am sending the part of the code and the error line.

=======================CODE======================

#include <fstream>
using std::ofstream;

#define SQL_BUF_SIZE 65536

#define RETURN_IF(ret,message,m_conn_ptr) if (ret != CS_SUCCEED) { show_messages(message, m_conn_ptr); return ret; }

exec sql include sqlca; //error

// Set error handler
exec sql whenever sqlerror call ErrorHandler(sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
exec sql whenever sqlwarning continue;
exec sql whenever not found call NotFoundHandler(sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);

====================CODE==================================

Can any one find the solution for this

Thanks Ankush


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>