×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

interbase restrictions

interbase restrictions

interbase restrictions

(OP)
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

RE: interbase restrictions

You have not defind domain TSTR20

hth

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close