Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

interbase restrictions 1

Status
Not open for further replies.

sancho1980

Technical User
Nov 25, 2005
15
DE
Hello
I was trying to create an interbase table with the following sql statement:

CREATE DOMAIN "TSTR100" AS VARCHAR(100);
CREATE DOMAIN "TSTR10" AS VARCHAR(10);
CREATE DOMAIN "TSTR15" AS VARCHAR(15);
CREATE DOMAIN "TSTRMAX" AS VARCHAR(32000);
CREATE TABLE haupteintraege
(
ID INTEGER NOT NULL PRIMARY KEY,
ASTERM TSTR100 NOT NULL,
ASABK TSTR10,
ASPRGM TSTR15,
DSKRPT INTEGER,
ASSEM TSTR100,
ASVERW TSTR100,
ZSTERM TSTR100 NOT NULL,
ZSABK TSTR10,
ZSPRGM TSTR15,
ZSSEM TSTR100,
ZSVERW TSTR100,
ASSYN INTEGER,
ZSSYN INTEGER,
ZSDEF TSTRMAX,
ASDEF TSTRMAX,
ZSQCode TSTR15,
ASQCode TSTR15,
AUT INTEGER,
DATUM DATE,
PROJ TSTR20,
REV VARCHAR(1),
ABBILDUNG BLOB,
UPDAUT INTEGER,
UPDDATUM DATE,
AUDIO BLOB,
VIDEO BLOB,
ASSYNS INTEGER,
ZSSYNS INTEGER,
DSKRPTS INTEGER
);

When I execute that, I get the following message:

Dynamic SQL Error
SQL error code = -607
Invalid command
Specified domain or source column does not exist
Statement: CREATE TABLE haupteintraege
(
ID INTEGER NOT NULL PRIMARY KEY,
ASTERM TSTR100 NOT NULL,
ASABK TSTR10,
ASPRGM TSTR15,
DSKRPT INTEGER,
ASSEM TSTR100,
ASVERW TSTR100,
ZSTERM TSTR100 NOT NULL,
ZSABK TSTR10,
ZSPRGM TSTR15,
ZSSEM TSTR100,
ZSVERW TSTR100,
ASSYN INTEGER,
ZSSYN INTEGER,
ZSDEF TSTRMAX,
ASDEF TSTRMAX,
ZSQCode TSTR15,
ASQCode TSTR15,
AUT INTEGER,
DATUM DATE,
PROJ TSTR20,
REV VARCHAR(1),
ABBILDUNG BLOB,
UPDAUT INTEGER,
UPDDATUM DATE,
AUDIO BLOB,
VIDEO BLOB,
ASSYNS INTEGER,
ZSSYNS INTEGER,
DSKRPTS INTEGER
)


Does any of you know what's wrong with that statement?
Thanx,
Martin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top