dbTalk Databases Forums  

Table in incomplete state

comp.databases.gupta comp.databases.gupta


Discuss Table in incomplete state in the comp.databases.gupta forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AndyG
 
Posts: n/a

Default Table in incomplete state - 01-19-2004 , 01:18 PM






Hi Guys,

I am writing because I have a weird bug that I have not been able to
figure out.

Description of the problem -- I created a table in SQL Base, committed
the transaction, tried to insert a record in the table, and SQL Base
complaints with the following error message: "Error: Table
TF_DISCOUNT_PERCEN in incomplete state." I have never seen this error
message before. Perhaps, SQL Base requires an extra step that I am not
aware of or probably, there is a bug hidden some where in the script
that I am not catching up.

Anyhow, the attached script is the exact SQL statements that I am
executing. If you have any idea of what is causing the problem, please
let me know. I would really appreciate it.

Best regards,

Andy Gonzalez

Scrip:
DROP TABLE TF_DISCOUNT_PERCEN;

COMMIT;

CREATE TABLE TF_DISCOUNT_PERCEN
(DISCOUNT_CODE varchar (15) NOT NULL,
PART_ID varchar (30) NOT NULL,
SELLING_UM varchar (15) NOT NULL,
QTY_BREAK_1 decimal(14, 4),
QTY_BREAK_2 decimal(14, 4),
QTY_BREAK_3 decimal(14, 4),
QTY_BREAK_4 decimal(14, 4),
QTY_BREAK_5 decimal(14, 4),
QTY_BREAK_6 decimal(14, 4),
QTY_BREAK_7 decimal(14, 4),
QTY_BREAK_8 decimal(14, 4),
PRIMARY KEY (DISCOUNT_CODE, PART_ID, SELLING_UM)
) ;

COMMIT;

INSERT INTO TF_DISCOUNT_PERCEN (DISCOUNT_CODE, PART_ID, SELLING_UM )
VALUES ('TNC', '200-12315', 'FT');

Reply With Quote
  #2  
Old   
Bob Badour
 
Posts: n/a

Default Re: Table in incomplete state - 01-19-2004 , 06:21 PM






"AndyG" <agonzalez (AT) navigatorco (DOT) com> wrote

Quote:
Hi Guys,

I am writing because I have a weird bug that I have not been able to
figure out.

Description of the problem -- I created a table in SQL Base, committed
the transaction, tried to insert a record in the table, and SQL Base
complaints with the following error message: "Error: Table
TF_DISCOUNT_PERCEN in incomplete state." I have never seen this error
message before. Perhaps, SQL Base requires an extra step that I am not
aware of or probably, there is a bug hidden some where in the script
that I am not catching up.

Anyhow, the attached script is the exact SQL statements that I am
executing. If you have any idea of what is causing the problem, please
let me know. I would really appreciate it.

Best regards,

Andy Gonzalez

Scrip:
DROP TABLE TF_DISCOUNT_PERCEN;

COMMIT;

CREATE TABLE TF_DISCOUNT_PERCEN
(DISCOUNT_CODE varchar (15) NOT NULL,
PART_ID varchar (30) NOT NULL,
SELLING_UM varchar (15) NOT NULL,
QTY_BREAK_1 decimal(14, 4),
QTY_BREAK_2 decimal(14, 4),
QTY_BREAK_3 decimal(14, 4),
QTY_BREAK_4 decimal(14, 4),
QTY_BREAK_5 decimal(14, 4),
QTY_BREAK_6 decimal(14, 4),
QTY_BREAK_7 decimal(14, 4),
QTY_BREAK_8 decimal(14, 4),
PRIMARY KEY (DISCOUNT_CODE, PART_ID, SELLING_UM)
) ;

COMMIT;

INSERT INTO TF_DISCOUNT_PERCEN (DISCOUNT_CODE, PART_ID, SELLING_UM )
VALUES ('TNC', '200-12315', 'FT');
Create an index for the primary key. It's stupid to require an index for a
single-page table, but that doesn't stop most dbms vendors from requiring
one.




Reply With Quote
  #3  
Old   
AndyG
 
Posts: n/a

Default Re: Table in incomplete state - 01-23-2004 , 11:15 AM



"Bob Badour" <bbadour (AT) golden (DOT) net> wrote

Quote:
"AndyG" <agonzalez (AT) navigatorco (DOT) com> wrote in message
news:98af6c0b.0401191118.20618a1b (AT) posting (DOT) google.com...
Hi Guys,

I am writing because I have a weird bug that I have not been able to
figure out.

Description of the problem -- I created a table in SQL Base, committed
the transaction, tried to insert a record in the table, and SQL Base
complaints with the following error message: "Error: Table
TF_DISCOUNT_PERCEN in incomplete state." I have never seen this error
message before. Perhaps, SQL Base requires an extra step that I am not
aware of or probably, there is a bug hidden some where in the script
that I am not catching up.

Anyhow, the attached script is the exact SQL statements that I am
executing. If you have any idea of what is causing the problem, please
let me know. I would really appreciate it.

Best regards,

Andy Gonzalez

Scrip:
DROP TABLE TF_DISCOUNT_PERCEN;

COMMIT;

CREATE TABLE TF_DISCOUNT_PERCEN
(DISCOUNT_CODE varchar (15) NOT NULL,
PART_ID varchar (30) NOT NULL,
SELLING_UM varchar (15) NOT NULL,
QTY_BREAK_1 decimal(14, 4),
QTY_BREAK_2 decimal(14, 4),
QTY_BREAK_3 decimal(14, 4),
QTY_BREAK_4 decimal(14, 4),
QTY_BREAK_5 decimal(14, 4),
QTY_BREAK_6 decimal(14, 4),
QTY_BREAK_7 decimal(14, 4),
QTY_BREAK_8 decimal(14, 4),
PRIMARY KEY (DISCOUNT_CODE, PART_ID, SELLING_UM)
) ;

COMMIT;

INSERT INTO TF_DISCOUNT_PERCEN (DISCOUNT_CODE, PART_ID, SELLING_UM )
VALUES ('TNC', '200-12315', 'FT');

Create an index for the primary key. It's stupid to require an index for a
single-page table, but that doesn't stop most dbms vendors from requiring
one.
Thank you very much. Creating a index solved my problem.
I appreciate your help.

-Andy


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.