cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot able to drop the table

former_member203645
Active Participant
0 Kudos

     Hi All,

I cannot able to drop a table, I don't know why ?? Please advise me.

Here is the error below.

The Object cannot be opened for DROP or ALTER. It is already open.

SQL Code = -1000018, ODBC 3 State = "HY000"

Line 1, Column1

Accepted Solutions (1)

Accepted Solutions (1)

saroj_bagai
Contributor
0 Kudos

check with sp_iqconnection /sp_iqcontext/sp_iqtransaction. other user  is using this table, commit that user's transaction. Alter and drop need exclusive write lock, You cann't alter/drop table if other user is using that table.    

markmumy
Advisor
Advisor
0 Kudos

You could also look at sp_iqlocks to see which connection has a lock on that table.

Former Member
0 Kudos

Just curious, how do you commit other's user transacttion?

markmumy
Advisor
Advisor
0 Kudos

You cannot. The user/app needs to do that.  A DBA or other user cannot commit transactions on other connections.

Former Member
0 Kudos

Thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi RUC,

Were you able to drop the table here ?

Let us know if you are still hitting the issue, and/or if you could identify which other user was using the table.

Thanks

Andrew