Message Text
Forest variable1 cannot be attached to target database
Cause
The operation is required to be executed against a database that doesn't have the subject forests attached.
Response
Issue the query against a different database that doesn't have the subject forests attached.