Posted in 1999
Hi all I built following executable to create stored procedures. It works good on Sun platform , but gives segmentation violation on IBM. Ma y be somebody know what's the reason Regards Igor #include <stdio.h> #include <string.h> $include sqlca; $include sqlda; $include datetime; main(argc,argv) int argc; char **argv; { exec sql begin declare section; char *db_name; char *str; exec sql end declare section; if(argc<3) { printf("usage : create_sp file_name db_name \\n"); return 0; } db_name = argv[2]; $database :db_name; str = argv[1]; $create procedure from :str; return 0; }
We use strictly necessary cookies to make this site work. With your consent we’d also use optional cookies for analytics and marketing. You can accept all, reject all, or choose. Read our Cookie Policy.