Click here to Skip to main content
16,004,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTITY,

If i had to ques the problem seems to be with this line

Newt_Id INTEGER NOT NULL UNIQUE IDENTITY,

where "UNIQUE IDENTITY" phrase is not supported in MS SQL server 2008.

My question: Why is this problem occurring and how to fix it? + This SQL code is automatically generated by another program so would it be possible to simply use a different version of SQL server?

SQL
CREATE TABLE Person
(
  Newt_Id INTEGER NOT NULL UNIQUE IDENTITY,
  Newt_CreatedBy INTEGER NULL,
  Newt_CreatedDate DATETIME NULL,
  Newt_UpdatedBy INTEGER NULL,
  Newt_UpdatedDate DATETIME NULL,
  Newt_TimeStamp DATETIME NULL,
  Newt_Deleted INTEGER NULL,
  Newt_Secterr INTEGER NULL
)


Any comments or suggestion are welcome. Thank you.
Posted

 
Share this answer
 
Apologies the problem was cased by the wrong input through the external program.
 
Share this answer
 
Comments
Maciej Los 19-Nov-13 12:53pm    
This is not an answer. Please delete it to avoid down-voting.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900