You have checked your code and can execute it successfully on Windows 2000 and Window XP, yet when trying to return information from a database on Windows 2003, DB_Fetchnext does not return anything. The problem comes from WinServer2003 Excel ODBC driver itself. The Excel ODBC driver for Windows Server 2003 appears to treat the names of tables differently depending on whether you are calling catalog functions or SQL queries. Therefore for DB_Columns(), DB_Tables(), and related functions, do not enclose the table name in back quotes (`).
↧