home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 32 / IOPROG_32.ISO / SOFT / SqlEval7 / devtools / samples / ODBC / loaddata / getdata.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-30  |  1.3 KB  |  36 lines

  1. // GetData.h
  2. //
  3. // This file is part of Microsoft SQL Server online documentation.
  4. // Copyright (C) 1992-1997 Microsoft Corporation. All rights reserved.
  5. //
  6. // This source code is an intended supplement to the Microsoft SQL
  7. // Server online references and related electronic documentation.
  8. #ifndef __GETDATA_H__
  9. #define __GETDATA_H__
  10.  
  11. #include "sql.h"
  12.  
  13. #define ALLOCBLOCK      512
  14.  
  15. typedef struct tagDATA_AT_EXEC
  16.     {
  17.     PBYTE       pData;
  18.     SQLINTEGER  cbData;
  19.     UINT        cbBuffer;
  20.     } DATA_AT_EXEC;
  21. typedef DATA_AT_EXEC* PDATA_AT_EXEC;
  22.  
  23. PSTR FieldData(PSTR pin, PSTR pout, UINT cboutMax, UINT* pcbout);
  24. PSTR GetBinaryData(PSTR pDataIn, PBYTE pout, UINT cboutMax, UINT* pcbout);
  25. PSTR GetCharData(PSTR pin, PSTR pout, UINT cboutMax, UINT* pcbout);
  26. PSTR GetWCharData(PSTR pin, WCHAR* pout, UINT cboutMax, UINT* pcbout);
  27. BOOL GetColNamesFromData(PSTR pDataIn, UINT* pnDataCols,
  28.         PTSTR** ppColNames);
  29. PSTR GetDateData(PSTR pin, SQL_TIMESTAMP_STRUCT* pts, UINT* pcbout);
  30. PSTR GetIntegerData(PSTR pin, int* pi, UINT* pcbout);
  31. PSTR GetLongBinaryData(PSTR pin, PDATA_AT_EXEC pDataAtExec);
  32. PSTR GetLongCharData(PSTR pin, PDATA_AT_EXEC pDataAtExec);
  33. PSTR GetNumericData(PSTR pin, PSTR pout, UINT cboutMax, UINT* pcbout);
  34.  
  35. #endif // __GETDATA_H__
  36.