For Azure SQL Database you need to use a newer ODBC driver than the old Windows "{SQL Server}" driver. I tried that code and it generated multiple errors (which I had to use ODBC Trace to see) when trying to create the tableDef. like
DIAG [37000] [Microsoft][ODBC SQL Server Driver][SQL Server]Reference to database and/or server name in 'master..sysdatabases' is not supported in this version of SQL Server. (40515) DIAG [S0002] [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'MSysConf'. (208)
But when I changed the connection string to use the latest ODBC driver, it worked fine. eg
stConnect = "ODBC;DRIVER={ODBC Driver 17 for SQL Server};SERVER=" & stServer & ";DATABASE=" & stDatabase & ";UID=" & stUsername & ";PWD=" & stPassword