When exporting phones - be it 7940 or 7960 or any phones using BAT we get EXPORT FAILED. When viewing the log file it says:
ODBC SQL SERVER DRIVER
The cursor was not declared.
What does this error message mean?
The above problem happens when tried on Publisher or on Subscriber
Found the answer in above link