[英]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.