Deleting sql table

I have a table (20 columns, 140,000 rows). It is imported from an Access database. I want to delete it to re-import it again because some extensive changes in both meta data and row data.

I started running Delete From Table1 but after about 10 minutes, I canceled it thinking I can just execute Drop Table Table1 but this was taking too long as well.

Now I am running Truncate Table Table1 but after 25 minutes it is still running.

Question: What is the best way do delete a table like this?

SQL Server 2012 Express.

BTW, I right-clicked on this table and chose delete option but it wasn't able to drop it.
LVL 34
Mike EghtebasDatabase and Application DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
There is some process accessing the table at the same time you are trying to delete it?
Check for everything (SQL commands, Reindex jobs, backup jobs, replication, etc...)
0
Vikas GargAssociate Principal EngineerCommented:
It might be the case that the query still running having involvement of the same table.

Find that query kill that

then you will be able to delete or drop the table

SELECT sqltext.TEXT,
req.session_id,
req.status,
req.command,
req.cpu_time,
req.total_elapsed_time
FROM sys.dm_exec_requests req
CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS sqltext
WHERE sqltext.TEXT LIKE '%tABLENAME%'

While running above query if you find any query which is running for long time it can be killed using following command.

KILL [session_id]
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.