Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/15
18 lines
377 B
C
18 lines
377 B
C
#include <sql.h>
|
|
#include <sqlext.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
printf("Type of SQL_CHAR is %i\n", SQL_CHAR);
|
|
return 0;
|
|
}
|
|
|
|
SQLRETURN driver_connect() {
|
|
SQLHDBC dbc;
|
|
SQLCHAR *connect_string = (unsigned char *)"DSN=mydsn;";
|
|
|
|
return SQLDriverConnect(dbc, NULL, connect_string, SQL_NTS,
|
|
NULL, 0, NULL, SQL_DRIVER_COMPLETE);
|
|
}
|