February 19th, 2013, 07:17 AM
Help in Sybase error
I am executing the sybase query, but it is failed to execute when I am gettint the error by getlasterror I am geting the error as "Cannot create a file when that file already exists."
elog() function is my local function to print the message in log files..
Please help ...
sprintf(pstr,"select status, delivery_mark from tb_comm_order where abwsorderno = %.0lf ",orderNo);
if (dbsqlexec(dbproc) == FAIL)
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
sprintf(lv_log,"getFNOOrderStatus [%s]",(char *)lpMsgBuf);
February 19th, 2013, 07:57 AM
So what is your "C / C++ / C#" question?
Your issue seems to be with your choice of database API, not some incidental match-up of the programming language you chose.
February 19th, 2013, 10:34 PM
I am using C,actually the problem is the dbinit() is been failed, I dont know why?,I had included the librarys for sybase,
still the same error message
if (dbinit() == FAIL)
February 20th, 2013, 06:14 AM
Its problem is solved, actually the enviroment variable was not set for sybase