I have a SQL Server 2005 Database on a dedicated partition, during the time the database grown and now it have occupied all the space on the partition, now the problem is that the only operation I can do on the database is detach, but i want to remove old data from some tables to save space ...
How can I remove old data from the database if SQL Server interface doesn't allow to run queries on it ?
SQL Server cannot perform the operation because the transaction log is full; it has nothing to do with the data file(s).
As long as there is still space in the transaction log, SQL server will not stop working.
You need to find out if and why the transaction log is full:
What you can try is to switch the DB to SIMPLE recovery:
If it doesn't free up space, see what is preventing it: