I have a series of stored procedures that fire and basically report on database size and drive space. No If I run these stored procedures on some SQL Instances they work fine, but on one when it comes to the 34th loop in the cursor, it errors with the below message. Executed as user: DXSQLService. Invalid column name 'date'. [SQLSTATE 42S22] (Error 207) Invalid column name 'DB_name'. [SQLSTATE 42S22] (Error 207). The step failed. basically I have one stored procedure firing a second inside a cursor that passes the database name to the second stored procedure in the loop. The second the uses sp_execute sql to dynamically query each databases sysfiles. Now when It gets to the 34th database it errors? any ideas on this error?