Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 can't delete,rename table

Author  Topic 

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-01-20 : 02:17:56
i have a table called images
it has over 200,00 rows - i need to add 2 new fields and could not do it.
i created a new table and moved over the records but i can't delete or truncate or rename the table either

EXEC sp_rename 'images', 'imagesold' is just taking forever

please advise

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-01-20 : 03:08:52
solved this...
i restarted sql server and then ran it - my guess it that someone was connected.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-01-20 : 20:17:10
Check with 'sp_who2 active' while rename is running, maybe blocked by other processes.
Go to Top of Page
   

- Advertisement -