Does anybody know how to get a progress report using ODBC (DMO is no problem) when execute BACKUP or RESTORE DATABSE statements with "WITH STATS 10"? I have expected that I can get it as a warning messages while calling SQLGetDiagRec in a loop in a separate thread using the same STMT. However, when I am doing so I only get the first warning which is "10 percent.." and SQLGetDiagRec returns SQL_NO_DATA.
Any ideas?