14

if(SQL_SUCCESS != ret)
 {      
     SQLGetDiagRec(nHandleType, hdbc, 1, cSQLState, &iNativeErr, cMsg, nMsgLen,&nTextLen);
     printf("connect failed FAILED REASON:/n%s/n",cMsg);
     return -1;
 }
 else
        printf("Connect server succeed/n");
      
 ret = SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &stmt);
 if (SQL_SUCCESS != ret)
 {
   printf("/n SQLAllocHandle : FAILED/n");
   return -1;
 }
    if( 0 == SignTb)
    {   i=0;
 j=5;
    }else{
        i=5;
        j=7;
    }

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页