Hello,
I'm trying to learn embedded SQL in C. However, it's not working
and reading the documentation is not answering my question(s). Here is my
code:
#include <stdlib.h>
#include <stdio.h>
exec sql include sqlca;
int main( int argc, char *argv[] ) {
exec sql whenever sqlerror sqlprint;
exec sql connect tootle;
exit( 0 );
exec sql disconnect sprawlsr;
}
And here is what I get back:
sql error Could not connect to database <DEFAULT> in line 25.
What am I doing wrong? Yes, the database does exist as tootle.
Robert