How to do ALTER TABLE after a DML sentece in the same transaction.

  • Thread starter Thread starter NKN
  • Start date Start date
N

NKN

Hi all,

Does anybody know how could I manage to do a sentence like this...

ALTER TABLE Table1 DROP COLUMN Col1

after doing a DML sentence like and UPDATE, INSERT or DELETE.

I'm using ADO commands to execute all thiis sentene from VB.

The problem is that if all this is in the same transaction when I try
droping the column in the same table that I've updated before I get an
error. The object is locked and I can't drop the column.

Thanks in advance for your suggestions,

Naiara.
 
Thankx Arvin, but then, there's no way to do that? No property on connection
object for Access, anything that allows update sentences not to lock the
table?

If I use SQL Server it works, it doesn't lock the table and I'm able to make
a DML sentence after an update, delete or inserta in the same table.

Thank you very much for your help. :)

Naiara.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top