Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #include <windows.h>
  2. #include <sql.h>
  3. #include <sqlext.h>
  4. #include <stdio.h>
  5. #include <conio.h>
  6. #include <tchar.h>
  7. #include <stdlib.h>
  8. #include <sal.h>
  9. #include <iostream>
  10.  
  11. #define TRYODBC(h, ht, x)                           \
  12. {   RETCODE rc = x;                                 \
  13.     if (rc != SQL_SUCCESS)                          \
  14.         HandleDiagnosticRecord(h, ht, rc);          \
  15.     if (rc == SQL_ERROR)                            \
  16.     {                                               \
  17.         fwprintf(stderr, L"Error in " L#x L"\n");   \
  18.         goto Exit;                                  \
  19.     }                                               \
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement