Article View: comp.databases.ms-access
Article #272Problem with MS Jet 4.0
From: Plamen Petrov
Date: Thu, 04 Apr 2002 07:32
Date: Thu, 04 Apr 2002 07:32
29 lines
2273 bytes
2273 bytes
It's very easy to reproduce the problem.
Create a table using the next statement:
CREATE TABLE t1
(
id AUTOINCREMENT NOT NULL PRIMARY KEY,
name VARCHAR(50)
)
After that execute in transaction next 2 statements:
INSERT INTO t1(name) VALUES('abc')
CREATE TABLE t2
(
id AUTOINCREMENT NOT NULL PRIMARY KEY,
x INT NOT NULL REFERENCES t1(Id),
name VARCHAR(50)
)
The result is error: 0x80040E14L - DB_E_ERRORSINCOMMAND
State : 3211
Native : -534316312
The database engine could not lock table 't1' because it is already
in use by another person or process.
The same code works with SQL Server. Is it a bug in Jet,
or I'm not doing it in the correct way?
Technical Details
Message-ID:
<3cac01a5$1@news.grutzeck.local>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!t-online.de!tkmsftngp01!tkmsftngp04!news.grutzeck.localShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111a5a,ea777802d348ae5c,start X-Google-Attributes: gid111a5a,public X-Google-Thread: 1041a7,ea777802d348ae5c,start X-Google-Attributes: gid1041a7,public X-Google-Thread: 1143a6,ea777802d348ae5c,start X-Google-Attributes: gid1143a6,public X-Google-Thread: ff0ac,ea777802d348ae5c,start X-Google-Attributes: gidff0ac,public X-Google-Thread: 103569,ea777802d348ae5c,start X-Google-Attributes: gid103569,public X-Google-Thread: 109305,ea777802d348ae5c,start X-Google-Attributes: gid109305,public X-Google-ArrivalTime: 2002-04-04 00:03:58 PST From: "Plamen Petrov" <plamen.petrov@grutzeck.de> Subject: Problem with MS Jet 4.0 Date: Thu, 4 Apr 2002 09:32:53 +0200 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Original-NNTP-Posting-Host: 192.18.4.172 Message-ID: <3cac01a5$1@news.grutzeck.local> X-Original-Trace: 4 Apr 2002 09:32:53 +0100, 192.18.4.172 Newsgroups: comp.databases.ms-access,es.comp.bd.ms-access,microsoft.public.access.dataaccess.pages,microsoft.public.access.tablesdbdesign,microsoft.public.data.oledb,microsoft.public.office.access.devtoolkits NNTP-Posting-Host: p5080c209.dip0.t-ipconnect.de 80.128.194.9 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!t-online.de!tkmsftngp01!tkmsftngp04!news.grutzeck.local