Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System Tables 2

Status
Not open for further replies.

sandylou

Programmer
Jan 18, 2002
147
0
0
US
Does anyone know how to safely delete a table from the system tables? I deleted a row for a table from the sysObjects table but failed to delete it from the subsequent tables. How can i find out all of the system tables I should remove the data from?
 
long story, but to sum it up, the database was hanging and i should have killed the processes, but in order to get rid of the table deleted it from the sysobjects because i couldn't get it to delete by dropping or truncating...it just froze...it ended up deleting, but the entire db froze, so i had to rebuild anyway..thank you!
 
Great link NoCoolHandle - a star for you.

[bandito] [blue]DBomrrsm[/blue] [bandito]

[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
 
Sandy,

once you clean up your systemtables you will need to make sure that you run dbcc checkdb against the database as well as sp_spaceused (with the rebuild option what ever that is)

Just deleteing the entrys won't clean up errors in the allocation tables.

I am probably forgetting something, but expect errors :)

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top