#include "sql.h" main () { SQLTCUR cur; SQLTRCD rcd; IF (rcd = sqlcnc(&cur, "DEMO", 0)) { printf("FAILURE ON CONNECT %d\n",rcd); exit(1); } else printf("Connection Established\n"); if (rcd=sqldis(cur)) printf("FAILURE ON DISCONNECT %d\n",rcd); else printf("Diconnect Performed\n"); }