Article View: borland.public.jbuilder.java.api
Article #1858InterBase 6: Can two Generators coexist in the same db operating on two diff tables
From: Rhonda Fischer
Date: Tue, 28 Aug 2001 05:51
Date: Tue, 28 Aug 2001 05:51
32 lines
1999 bytes
1999 bytes
Hello, I am using InterBase 6 with my JBuilder 5 GUI. I have created my database structure using isql. I want to automatically generate a number in two separate tables. However I don't want this number to be equal to each other increasing at the same rate so I intend to start the second generator at 100. ==> This Generator was created, no error messages CREATE GENERATOR GENERATOR_DICTID; and subsequently activated inside of an insert trigger. ==> When I type following in the isql: CREATE GENERATOR GENERATOR_SUGGESTID; ==> I receive this error message: Unsuccessful metadata update DEFINE GENERATOR failed attempt to store duplicate value (visible to active transactions) in unique index "RDB$INDEX_11" Statement: CREATE GENERATOR GENERATOR_SUGGESTID So I am not sure if a database can only have one generator operating on the value of one column in a nominated table? I would very much appreciate feedback on this. Thank you very much Rhonda
Technical Details
Message-ID:
<3b8b315b_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,2859a9b036014e1c,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-08-27 22:58:07 PST Reply-To: "Rhonda Fischer" <rhondafischer@mortonblacketer.com.au> From: "Rhonda Fischer" <rhondafischer@mortonblacketer.com.au> Newsgroups: borland.public.jbuilder.java.api Subject: InterBase 6: Can two Generators coexist in the same db operating on two diff tables Date: Tue, 28 Aug 2001 15:21:51 +0930 Lines: 34 Organization: Morton Blacketer X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 150.101.6.68 Message-ID: <3b8b315b_1@dnews> X-Trace: dnews 998977883 150.101.6.68 (27 Aug 2001 22:51:23 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews