简体   繁体   English

SQL Server代理发出的第一条语句将quoted_identifier设置为off

[英]First statement issued by SQL Server Agent sets quoted_identifier off

As I can see in SQL Server Profiler, the first statement issued by SQL Server Agent when it begins to execute a job step, is 正如我在SQL Server Profiler中看到的那样,SQL Server代理开始执行作业步骤时发出的第一条语句是

select c.name, c.description 
from master.dbo.syscharsets c 
where c.id = convert(tinyint, databasepropertyex ( db_name() , 'sqlcharset'))  

set quoted_identifier off

In my job steps I always need quoted_identifier to be set to on. 在我的工作步骤中,我始终需要将quoted_identifier设置为on。

How can I change this behavior? 我该如何改变这种行为?

Default connection setting for the server is set to On. 服务器的默认连接设置设置为“开”。

select @@version

Output: 输出:

Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (Intel X86) 
Sep 22 2011 00:28:06 
Copyright (c) 1988-2008 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 <X86> (Build 3790: Service Pack 2)

可能的解决方法是在作业开始时添加“ SET QUOTED_IDENTIFIER ON”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL Server 2008 SET QUOTED_IDENTIFIER OFF问题 - SQL Server 2008 SET QUOTED_IDENTIFIER OFF problem SQL 服务器 QUOTED_IDENTIFIER 更新时出错 - SQL Server QUOTED_IDENTIFIER Error On UPDATE SQL SERVER 和 SET ANSI_NULLS ON, SET QUOTED_IDENTIFIER ON - SQL SERVER and SET ANSI_NULLS ON, SET QUOTED_IDENTIFIER ON 由于使用了XML / ANSI_NULLS,QUOTED_IDENTIFIER选项,SQL Server存储过程失败 - SQL Server Stored Procedure Fails due to use of XML/ ANSI_NULLS, QUOTED_IDENTIFIER options EXEC和设置Quoted_Identifier - EXEC and Set Quoted_Identifier ANSI_NULLS和QUOTED_IDENTIFIER行为 - ANSI_NULLS and QUOTED_IDENTIFIER Behavior SQL 查询通知 - 更新失败,因为以下 SET 选项的设置不正确:'QUOTED_IDENTIFIER' - SQL Query Notifications - UPDATE failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER' ANSI_NULLS 和 QUOTED_IDENTIFIER 杀死了一些东西。 它们是为了什么? - ANSI_NULLS and QUOTED_IDENTIFIER killed things. What are they for? 事务复制不复制 SET QUOTED_IDENTIFIER - Transactional Replication does not replicate SET QUOTED_IDENTIFIER 过滤的唯一索引导致更新由于错误的“ QUOTED_IDENTIFIER”设置而失败 - Filtered Unique Index causing UPDATE to fail because incorrect 'QUOTED_IDENTIFIER' settings
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM