User Profile

Collapse

Profile Sidebar

Collapse
nathalie
nathalie
Last Activity: Apr 24 '13, 01:03 AM
Joined: Apr 22 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Code:
    --[START EXPORT FILE : First line of script file]
    SET NOCOUNT ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET IDENTITY_INSERT tbl_test ON
    GO
    ALTER TABLE tbl_test NOCHECK CONSTRAINT ALL
    ...
    ALTER TABLE tbl_test CHECK CONSTRAINT ALL
    GO
    SET IDENTITY_INSERT tbl_test OFF
    SET QUOTED_IDENTIFIER OFF
    GO
     
    SET NOCOUNT OFF
    --[COMPLETE EXPORT FILE: Last line of script file]
    ...
    See more | Go to post

    Leave a comment:


  • oh.. line 12 should be, it's my typo error in the 1st msg
    SET IDENTITY_INSERT tbl_test OFF
    See more | Go to post

    Leave a comment:


  • incorrect syntax near 'quoted_identif i'

    Yes, the SQL runs without errors in MS SQL mgmt studio.
    Line 9 is hidden as i am collapsing the rest of the code which are all INSERT statements.

    Is line 12 wrong, what should be the correct answer?

    Any good tool to recommend?...
    See more | Go to post

    Leave a comment:


  • nathalie
    started a topic Incorrect syntax near 'QUOTED_IDENTIFI'

    Incorrect syntax near 'QUOTED_IDENTIFI'

    hi,
    i am an external sql script that i called using sqlcmd from command prompt. However, an error appeared, "Msg 102, Level 15, State 1, Server db\SQLEXPRESS, Line 2
    Incorrect syntax near 'QUOTED_IDENTIF I'."

    Is there any software that i can use to validate the sql script ? i need more clear error description.

    Code:
    --[START EXPORT FILE : First line of script file]
    SET NOCOUNT ON
    GO
    SET QUOTED_IDENTIFIER
    ...
    See more | Go to post
    Last edited by acoder; Apr 22 '13, 11:03 AM. Reason: Please use [code] tags when posting code
No activity results to display
Show More
Working...