Let me start off by saying this is occurring on a SQL 2005 database, which I know is not officially supported, so that may be the issue but I wanted to check here first. When monitoring the database, the component shows this error:
No valid data was received. Cannot assign a default value to a local variable. Must declare the scalar variable "@majorVersion". Incorrect syntax near the keyword 'ELSE'. Must declare the scalar variable "@recordNumPerDatabase".
I want to verify if it would be possible to find out what the query was to ensure that the issue is with SQL, or perhaps just a permissions tweak I need to make for the user. Any help would be appreciated.