Sorry for the length of the question:
I have a script that refreshes (or adds links to) all tables (156) in a SQL server database.
Recently this script throws an error on tblSupplier_Type.
If the script try to refresh this table, I receive an error saying tblSupplier_Type doesn't exist.
If the script try to add a new linked table, I receive an error saying tblSupplier_Type already exists.
With Show hidden and system objects ticked, searching for this table in navigation bar doesn't show anything.
But running this query:
shows this:
OK. I have no time to waste. I added a new database, imported all objects (everything except the tables) and tried to fix the references. But to my surprise, the ADO reference on two databases reads different:
Left image: Previous Database.............................................................................Right image: new Database
.....
Now my questions:
Both databases are created on the same PC. Both images belongs to the same PC.
Both databases show available references to ADO 2.0, 2.1, 2.5, 2.6, 2.7 & 2.8. The only difference is one shows 6.0 the other shows 6.1
Sorry again for the length and thanks for any kind of insight on this.
I have a script that refreshes (or adds links to) all tables (156) in a SQL server database.
Recently this script throws an error on tblSupplier_Type.
If the script try to refresh this table, I receive an error saying tblSupplier_Type doesn't exist.
If the script try to add a new linked table, I receive an error saying tblSupplier_Type already exists.
With Show hidden and system objects ticked, searching for this table in navigation bar doesn't show anything.
But running this query:
SQL:
SELECT Name, Type, Database FROM MSysObjects WHERE Name = 'tblSupplier_Type';
OK. I have no time to waste. I added a new database, imported all objects (everything except the tables) and tried to fix the references. But to my surprise, the ADO reference on two databases reads different:
Left image: Previous Database.............................................................................Right image: new Database
Now my questions:
- Why I have a ghost table in MSysObjects? How is it possible? The database is not corrupt. I have had this problem for at least two months, and all the while the database is acting perfect. Not even a single sign of corruption through our whole domain.
- Why a brand new database points to a different version (older) of a library, while a 10 years old db has a newer version.
Both databases are created on the same PC. Both images belongs to the same PC.
Both databases show available references to ADO 2.0, 2.1, 2.5, 2.6, 2.7 & 2.8. The only difference is one shows 6.0 the other shows 6.1
Sorry again for the length and thanks for any kind of insight on this.
Last edited: