System table mismatch

  • Hi Folks,

    I've got a table that is showing up in sys.tables but does not actually exist. Is it safe to delete the record from sys.tables in this situation? I ran the following queries:

    SELECT [name],[object_id] FROM sys.tables WHERE [name] = 'table';

    name object_id

    ----- -----------

    table 194815756

    SELECT OBJECT_ID('table');

    (No column name)

    -----------------

    NULL

    SELECT OBJECT_NAME(194815756);

    (No column name)

    -----------------

    table

    DROP TABLE

    ;

    Cannot drop the table 'table', because it does not exist or you do not have permission.

    I'm a sysadmin so the permissions portion of that message doesn't apply. Does anyone have any ideas or recommendations? Also, does anyone know how something like this could happen?

    Thanks so much!

  • My sincere apologies for jumping the gun, the problem is that this table is not a part of the dbo schema and I had overlooked that.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply