Incorrect syntax near the keyword 'Close'

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: fniles (fiefieniles_at_yahoo.com)
Date: 09/25/04


Date: 25 Sep 2004 15:52:34 -0700

When I created a SQL Server database by running a script, it gave me a
few errors like the following:

Incorrect syntax near the keyword 'KEY'.
Incorrect syntax near the keyword 'Close'.
Incorrect syntax near the keyword 'Open'.

Is this because those words (Key, CLose and Open) are reserved words ?

Thanks.



Relevant Pages

  • Multiple Value List Bug...
    ... Incorrect syntax near the keyword 'SET'. ... statement must be terminated with a semicolon. ... an xmlnamespaces clause, the previous statement must be terminated ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Collection cube ... view or table ?
    ... about error Incorrect syntax near the keyword 'as'. ... >> Wayne Snyder MCDBA, SQL Server MVP ...
    (microsoft.public.sqlserver.olap)
  • Re: Incorrect syntax near the keyword Close
    ... SQL Server MVP ... > Incorrect syntax near the keyword 'Close'. ... > Is this because those words are reserved words? ...
    (microsoft.public.sqlserver.server)
  • Re: Update statement problem
    ... Zach, thank you ... Your code still produces the error 'Incorrect syntax near the keyword ... > Vlad wrote: ...
    (microsoft.public.sqlserver.programming)
  • Sql problem in C# ASP.NET
    ... I have made a Sql Statement, ... Incorrect syntax near the keyword 'WHERE'. ... Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax ... Line 157: dsDgrApparatuur = SqlHelper.ExecuteDataset(MyConnection, ...
    (comp.databases)