If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
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, 16: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, 16: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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On