QUOTED_IDENTIFIER Setting for SQL Server Client

  • When I ran SQL Query with double quotes in one machine, no problem, but ran the same query in another one got error:

    if @TimeStampFilterOption = 'Today Only'

    select @FilterDate = convert(char(11),getdate(),120) + " 00:01"

    Msg 207, Level 16, State 1, Line 39

    Invalid column name ' 00:01'.

  • Ther server where it ran with out any problem is due to quoted_identifier is set off.

    Run SET QUOTED_IDENTIFIER OFF before running your query.

  • I have lots of scripts to run everyday, it's not woking to change all of the scripts to set to OFF individually.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply