home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / sqlsvr / odbcsdk / samples / smpldrvr / execute.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-07  |  1.5 KB  |  85 lines

  1. /*
  2. ** EXECUTE.C - This is the ODBC sample driver code for
  3. ** executing SQL Commands.
  4. **
  5. **    This code is furnished on an as-is basis as part of the ODBC SDK and is
  6. **    intended for example purposes only.
  7. **
  8. */
  9.  
  10. //    -    -    -    -    -    -    -    -    -
  11.  
  12. #include "sample.h"
  13.  
  14. //    -    -    -    -    -    -    -    -    -
  15.  
  16. //    Execute a prepared SQL statement
  17.  
  18. RETCODE SQL_API SQLExecute(
  19.     HSTMT    hstmt)        // statement to execute.
  20. {
  21.     return SQL_SUCCESS;
  22. }
  23.  
  24. //    -    -    -    -    -    -    -    -    -
  25.  
  26. //    Performs the equivalent of SQLPrepare, followed by SQLExecute.
  27.  
  28. RETCODE SQL_API SQLExecDirect(
  29.     HSTMT     hstmt,
  30.     UCHAR FAR *szSqlStr,
  31.     SDWORD    cbSqlStr)
  32. {
  33.     return SQL_SUCCESS;
  34. }
  35.  
  36. //    -    -    -    -    -    -    -    -    -
  37.  
  38. //    Returns the SQL string as modified by the driver.
  39.  
  40. RETCODE SQL_API SQLNativeSql(
  41.     LPDBC      lpdbc,
  42.     UCHAR FAR *szSqlStrIn,
  43.     SDWORD     cbSqlStrIn,
  44.     UCHAR FAR *szSqlStr,
  45.     SDWORD     cbSqlStrMax,
  46.     SDWORD FAR *pcbSqlStr)
  47. {
  48.     return SQL_SUCCESS;
  49. }
  50.  
  51. //    -    -    -    -    -    -    -    -    -
  52.  
  53. //    Supplies parameter data at execution time.    Used in conjuction with
  54. //    SQLPutData.
  55.  
  56. RETCODE SQL_API SQLParamData(
  57.     HSTMT    hstmt,
  58.     PTR FAR *prgbValue)
  59. {
  60.     return SQL_SUCCESS;
  61. }
  62.  
  63. //    -    -    -    -    -    -    -    -    -
  64.  
  65. //    Supplies parameter data at execution time.    Used in conjunction with
  66. //    SQLParamData.
  67.  
  68. RETCODE SQL_API SQLPutData(
  69.     HSTMT   hstmt,
  70.     PTR     rgbValue,
  71.     SDWORD  cbValue)
  72. {
  73.     return SQL_SUCCESS;
  74. }
  75.  
  76. //    -    -    -    -    -    -    -    -    -
  77.  
  78. RETCODE SQL_API SQLCancel(
  79.     HSTMT    hstmt)    // Statement to cancel.
  80. {
  81.     return SQL_SUCCESS;
  82. }
  83.  
  84. //    -    -    -    -    -    -    -    -    -
  85.