Hi everyone
I'm not exactly an expert on SQL so bear with me if I'm having some trouble explaining or if it is unclear.
My situation is that I have a productive SQL Server 2012 (11.0.3) with several databases. It used to have a working replication which didn't work anymore at some point. We tried to fix it to no avail. So at some point we thought that deleting all the tables and everything related to replication from all the databases and then redo it from the start would be a good idea.
Problem is, we can't even open any dialogs related to replication after that. For example creating a new publication fails with:
Invalid object name 'IHpublications'.
Could not use view or function 'dbo.syspublications' because of binding errors.
After a while I figured out that this message wasn't from the master db's System Views but from one of my databases. At some point this database ended up in the the system databases folder instead of right in the databases folder as they normally would. We managed to move it back but I guess this view might have been added at that time.
So I guess that I should get rid of this view (there are some others that my other databases don't have), to make it work again. Does anybody have an idea what I could do? I can't rename the view I get an error (15001), haven't tried to delete it but I'm afraid making more changes now.
That was a stupid series of events, I really hope someone has an idea how to fix it.
Any help highly appreciated
Philip