Chapter 1: SQL script syntax
Rather than build the SQL database by hand, I'm attempting to run the SQL script. My issue is that I'm receiving several syntax errors of the form below:
Server: Msg 156, Level 15, State 1, Line 9
Incorrect syntax near the keyword 'PRIMARY'.
The line of code in the sql which causes the above error is marked in red below:
---------------------------------------------------------------------
-- Primary Keys
---------------------------------------------------------------------
ALTER TABLE GroupProjects WITH NOCHECK ADD
CONSTRAINT PK_GroupProjects PRIMARY KEY CLUSTERED
(
GroupProjectID
) ON PRIMARY
GO
----------
Can anyone offer any advice? I've not used sql scripts much before - and google could not help.
I'm using SQL Server Version 8.00.760.
Thanks,
Greg
|