views:

52

answers:

3

hi, if i apply a sql query statement to this table "select * from context.tablename", all i see is the "Executing query.." message and nothing else hapens. I also can not truncate or drop this table. It prevents me from even dropping vhole database.

Is it possible, that this problem is caused by inserted data into this table???

I'm using MS Sql server 2005

A: 

Are there any open connections to the database while trying to drop the table? Have you tried closing all connections before dropping it?

J.R. Garcia
yes, i have closed all connections
dani
My next guess would be restarting the service like Greco suggested. If that doesn't work, I would try running DBCC CHECKDB and see if the database is corrupt. It very well may be the data. Also, is this SQL Server being replicated or mirrored?
J.R. Garcia
A: 

Have you tried restarting the SQL Server service?

Greco
A: 

Use SSMS to detach the database. Delete the MDF files manually.

Andomar
if i try to detach i get this error message: "Process ID -2 is not a valid process ID. Choose a number between 1 and 2048"
dani