
INSTALLING:

Copy mod_sql_tds.c to {PROFTPD_SRC}/contrib/ 
cd {PROFTPD_SRC} 
patch /path/to/patch-mod_sql 

./configure --with-modules=mod_sql:mod_sql_tds \
	    --with-libraries=$SYBASE/lib  \
	    --with-includes=$SYABSE/include

On my system (FREEBSD-STABLE) this command looks like this

./configure --with-modules=mod_sql:mod_sql_tds \
	    --with-libraries=/usr/local/freetds/libraries  \
            --with-inlcudes=/usr/local/freetds/include 

DIRECTIVES

database isn't used, it is just a placeholder and server is the name of the server in your TDS INTERFACES file.
(mine is /usr/local/freetds/etc/freetds.conf)

SQLConnectInfo database@server user password

the rest of the information is the same as mod_sql, except that you need to prepend the database name to all of your tables as in the following: 

SQLUserTable INOC.dbo.tbl_FTP_INOC

where INOC is the database name

