Re: UPDATE and ALTER in transactions do not mix
- From: "Jamie Collins" <jamiecollins@xxxxxxxxxx>
- Date: 4 Aug 2005 03:42:25 -0700
Jonathan S via AccessMonster.com wrote:
> Can anyone verify that UPDATE followed by an ALTER statement, inside of a
> transaction, would cause the "table in use by another user" error
Here's my test (ADO Connection object):
m_Conn.Open
m_Conn.BeginTrans
m_Conn.Execute "ALTER TABLE Test ADD blah INTEGER"
m_Conn.Execute "UPDATE Test SET earnings_amt = 12"
m_Conn.RollbackTrans
-- no errors, schema and data remain unchanged
m_Conn.Open
m_Conn.BeginTrans
m_Conn.Execute "ALTER TABLE Test ADD blah INTEGER"
m_Conn.Execute "UPDATE Test SET earnings_amt = 12"
m_Conn.CommitTrans
-- no errors, schema and data have been changed
.
- Follow-Ups:
- Re: UPDATE and ALTER in transactions do not mix
- From: Jamie Collins
- Re: UPDATE and ALTER in transactions do not mix
- References:
- UPDATE and ALTER in transactions do not mix
- From: Jonathan S via AccessMonster.com
- UPDATE and ALTER in transactions do not mix
- Prev by Date: Re: Do not want data to auto sort
- Next by Date: Re: UPDATE and ALTER in transactions do not mix
- Previous by thread: UPDATE and ALTER in transactions do not mix
- Next by thread: Re: UPDATE and ALTER in transactions do not mix
- Index(es):
Relevant Pages
|
Loading