Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <sql.h>
- #include <sqlext.h>
- #include <stdio.h>
- #include <conio.h>
- #include <tchar.h>
- #include <stdlib.h>
- #include <sal.h>
- #include <iostream>
- #define TRYODBC(h, ht, x) \
- { RETCODE rc = x; \
- if (rc != SQL_SUCCESS) \
- HandleDiagnosticRecord(h, ht, rc); \
- if (rc == SQL_ERROR) \
- { \
- fwprintf(stderr, L"Error in " L#x L"\n"); \
- goto Exit; \
- } \
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement