This function inserts a row into a SQL database and needs to return the identity number created:
Function WriteDatabase(backupTypeID, numImages, folderSize,
I received the exact error, and managed to track it down to a PRINT statement that I had left in my SQL Server stored procedure. Once I commented the PRINT statement, the Recordset returned the results without error.