Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Syntax error in CONSTRAINT clause

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-04-04, 17:09
Matt_T_hat Matt_T_hat is offline
Registered User
 
Join Date: Sep 2003
Location: UK
Posts: 122
Syntax error in CONSTRAINT clause

Create Table [MyHome](ID AUTOINCREMENT CONSTRAINT pk1 PRIMARY KEY, UserID Integer, ModuleID Integer CONSTRAINT F_KEY REFERENCES module, SortVal Integer, Pos Integer,) ;

Gives me this:


Microsoft JET Database Engine
error '80040e14'Syntax error in CONSTRAINT clause.

I have tried

Create Table [MyHome](ID AUTOINCREMENT CONSTRAINT pk1 PRIMARY KEY, UserID Integer, ModuleID Integer CONSTRAINT F_KEY REFERENCES module (ID), SortVal Integer, Pos Integer,) ;

no joy there either.

I'm useing an Access 2k DB via ASP in case that makes blind bit of difference.
__________________
Matt the Hat says: "what!?"
A child of five could understand this! Fetch me a child of five!
SCARY HARD CHALLENGE: http://www.dbforums.com/database-concepts-design/988682-better-relational-design.html
Reply With Quote
  #2 (permalink)  
Old 10-04-04, 17:21
Matt_T_hat Matt_T_hat is offline
Registered User
 
Join Date: Sep 2003
Location: UK
Posts: 122
opps there seems to be a bonus comma!!!
__________________
Matt the Hat says: "what!?"
A child of five could understand this! Fetch me a child of five!
SCARY HARD CHALLENGE: http://www.dbforums.com/showthread.php?threadid=988682
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On