ODBC Using a Server-Side RPC

Go back to: Code Samples
strcpy(sqlStatement, "{call getCustName (?)}");
rc = SQLPrepare((SQLHSTMT)hstmt, sqlStatement, SQL_NTS);
rc = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT,
                      SQL_C_LONG, SQL_INTEGER, 10, 0,
                      &id, sizeof(id), NULL);
id = 12345;
rc = SQLExecute(hstmt);




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.