Changed to use SQLLEN where appropriate (possible omissions, needs testing)
Use SQLINTEGER and SQLDOUBLE instead of long and double in ConvertColumnValue/GetCColumnType