ODBC Using SQLBindCol

Go back to: Code Samples
rc = SQLExecDirect (hstmt, "SELECT <20 columns> FROM employees " + 
                    "WHERE HireDate >= ?", SQL_NTS);
 
/* Call SQLBindCol 20 times */
do {
rc = SQLFetch(hstmt);
} while ((rc == SQL_SUCCESS) || (rc ==   SQL_SUCCESS_WITH_INFO));




Like what you see? Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Reddit
  • StumbleUpon
  • Technorati
  • TwitThis

Book Content Copyright © 2009 by Prentice Hall PTR. All rights reserved. | Corporate Sponsor DataDirect Technologies.