I am trying to run the following query in ms sql manager, but I keep getting syntax errors.
Msg 102, Level 15, State 1, Line 8
Incorrect syntax near ' '.
INSERT INTO dbo.Survey
(
Title,
Active,
StartDate,
EndDate
)
VALUES
(
'Title test',
'1',
null,
null
);
// Table
SurveyId (primaryId)
Title (varchar)
Active (bit)
StartDate (datetime)(nullable)
EndDate (datetime)(nullable)
Double click on the error, it will bring you to the line in question
It looks like you have a blank character of some sort on line 8 (after Values)..paste it into something like NotePad++ and look for hidden characters
or change
to