Try each of the following steps in order until the issue is resolved:

  1. Recreate the query.
  2. Set the appropriate NTFS permissions.
  3. Run Update/Repair on the workstation.
  4. Detach all databases.
  5. Re-attach all databases.