Click to open or copy the files for the XP sample.
This is a sample extended procedure DLL built with Open Data Services. The functions within the DLL can be invoked by using the extended stored procedures support in SQL Server. To register the functions and allow all users to use them, run the Transact-SQL script Instxp.sql.
This sample uses the following keywords:
_itoa; _strtime; fclose; feof; fopen; fread; getdiskfreespace; getlasterror; getlogicaldrives; malloc; printf; seterror; sprintf; srv_bmove; srv_convert; srv_describe; srv_getserver; srv_langlen; srv_langptr; srv_paramdata; srv_paramlen; srv_parammaxlen; srv_paramname; srv_paramset; srv_paramstatus; srv_paramtype; srv_pfield; srv_pre_handle; srv_rpcdb; srv_rpcname; srv_rpcnumber; srv_rpcowner; srv_rpcparams; srv_senddone; srv_sendmsg; srv_sendrow; srv_setcoldata; srv_setcollen; strcat; strcpy; stricmp; strupr; switch; trace_lang; trace_rpc; xp_diskfree; xp_disklist; xp_echo; xp_proclist; xp_scan_xbase; xp_trace