Click to open or copy the files for the Gateway sample.
This is a sample C gateway application that connects to SQL Server as an alternate data source and demonstrates a pass-through application.
This sample uses the following keywords:
attn_handler; bcp_setl; check_stack; chk_err; createmutex; dbcancel; dbclose; dbcmd; dbcolinfo; dbcollen; dbcolname; dbcolntype; dbcoltype; dbcount; dbdata; dbdatlen; dbdead; dberrhandle; dbfcmd; dbfreelogin; dbgetuserdata; dbhasretstat; dbinit; dbiscount; dblogin; dbmsghandle; dbnextrow; dbnumcols; dbnumrets; dbopen; dbresults; dbretdata; dbretlen; dbretname; dbretstatus; dbrettype; dbrowtype; dbrpcinit; dbrpcparam; dbrpcsend; dbsetlapp; dbsetlnatlang; dbsetlpwd; dbsetlsecure; dbsetluser; dbsetlversion; dbsetmaxprocs; dbsetuserdata; dbsqlexec; dbsqlok; exit_remote; exitprocess; getargs; handle_results; init_remote; init_server; itoa; lang_execute; memcpy; memmove; memset; printf; releasemutex; remoteerr; remotemsgs; rpc_execute; set_remote_server_name; sprintf; srv_alloc; srv_config; srv_config_alloc; srv_describe; srv_errhandle; srv_event; srv_free; srv_getuserdata; srv_got_attention; srv_handle; srv_impersonate_client; srv_init; srv_langlen; srv_langptr; srv_log; srv_paramdata; srv_paramlen; srv_parammaxlen; srv_paramname; srv_paramset; srv_paramstatus; srv_paramtype; srv_pfield; srv_returnval; srv_revert_to_self; srv_rpcdb; srv_rpcname; srv_rpcnumber; srv_rpcoptions; srv_rpcowner; srv_rpcparams; srv_run; srv_senddone; srv_sendmsg; srv_sendrow; srv_sendstatus; srv_setcoldata; srv_setcollen; srv_setuserdata; srv_setutype; srv_sfield; srv_tdsversion; strcat; strcmp; strnicmp; waitforsingleobject