I am posting this question after being completely drained of any possible solution I could think. I was working on a WPF application which was connected to a DB (provided via CONFIGs). Few months back, the DB was changed (let's assume initially the DB name was DB1 which got changed to DB2). Now, even I have updated the DB in all my CONFIG files, my application doesn't run stating the following reason:
Could not locate stored procedure "ABC"
Now, this SP is present in the new DB i.e. DB2 but not in DB1 After analyzing the trace via SQL Profiler, it seems the application is sending few queries to DB1, and the rest to DB2.
I have tried the following steps:
- Find the reference of DB1 in my entire C drive. It was in VS Backup Files and SQL Temp Files. Removed the entire VS Backup Files and SQL Temp Files
- Clear the cached data from DB1 and DB2 both
None of the above approaches have helped in resolving the issue. Can anyone help me with this creepy SQL issue. It would be of great help.
Thanks in advance.