Board index » delphi » Table does not support this operation because it is not uniquely indexed
Garrad Wayling
![]() Delphi Developer |
Mon, 22 Sep 2003 15:09:33 GMT
|
Garrad Wayling
![]() Delphi Developer |
Mon, 22 Sep 2003 15:09:33 GMT
Table does not support this operation because it is not uniquely indexed
I am using Builder 5 with Oracle 8.1.7 and I am having difficulties getting
a DBGrid to display data that has been inserted directly into the grid element. I am using a SELECT TQuery to retrieve the data. After inserting new data, the information from the new record disappears I thought perhaps the best way of getting the information to appear was to Any suggestions as to how I might get the data to appear after it has been Garrad |
Stimp
![]() Delphi Developer |
Mon, 22 Sep 2003 15:47:05 GMT
Re:Table does not support this operation because it is not uniquely indexedThis is a known problem with the BDE. You can do a few things depending on how you are generating your keys. If they are being generated on the server using triggers, you are SOL. If you generate key from application, then I suggest that you store that key and use it to fetch the record back. If you are using the sequence in Oracle then just fetch the Nextval with a query in which case you have the key and can fetch that record. These are workarounds. If you plan on doing some serious work with Oracle, then I suggest that you -- Quote"Garrad Wayling" <gar...@gsaust.com.au> wrote in message Quote> I am using Builder 5 with Oracle 8.1.7 and I am having difficulties |
Ken Foske
![]() Delphi Developer |
Mon, 22 Sep 2003 22:07:48 GMT
Re:Table does not support this operation because it is not uniquely indexedQuoteGarrad Wayling wrote: the problem went away. KenF |
Garrad Waylin
![]() Delphi Developer |
Tue, 23 Sep 2003 07:49:25 GMT
Re:Table does not support this operation because it is not uniquely indexedThanks for your response. I am generating the key value using a sequence in a "before insert" trigger such as : "SELECT seq_sale.nextval I realise I can change this statement in the trigger so it stores the data Quote"Stimpy" <stim...@linkline.com> wrote in message news:3acc2281_1@dnews... |
Luis Anibal Mende
![]() Delphi Developer |
Wed, 24 Sep 2003 02:54:39 GMT
Re:Table does not support this operation because it is not uniquely indexedHi, Are you using a DBGrid with a TQuery, with UpdateLive==true ? It's not a good idea, because to see your new record If you Open a TQuery and it gives you 20 records, remember, To see the new five (5) records, you must re-Open the TQuery. Luis Anibal |
Nhoj
![]() Delphi Developer |
Fri, 10 Oct 2003 20:15:55 GMT
Re:Table does not support this operation because it is not uniquely indexedQuoteGarrad Wayling <gar...@gsaust.com.au> wrote in message Quote> Thanks for your response. I am generating the key value using a sequence |
1. MSSQL:Table does not support this operation because it is not uniquely indexed
2. SQL error: Table does not support this operation because it is not uniquely indexed
3. Table does not support ... Not uniquely indexed
4. table does not support this operation because it is not uniquely indexed...
5. ? Table does not support this operation because it is not uniquely indexed ?
6. "Table does not support this operation because it is not uniquely indexed"...
7. Table does not support this operation because it is not uniquely indexed.
8. Table does not support this operation because it is not uniquely indexed ?
9. Table does not support this operation because it is not uniquely indexed.