Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I checked the log from 'sys.dm_exec_cached_plans' and there is nothing related to my problem, no jobs, no restores, it never had had foreign keys, and is not the wrong database, that's why I'm confused.