由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 大家帮忙看看一个sql server set option 的问题
相关主题
怎么样提高SQL SERVER的编程水平?请各位帮我看看这个最简单的Stored Procedure (转载)
为啥Oracle stored procedure 里面不建议用 temporary table?How to prevent primary key collision for replication
DB2 Stored Procedure Error HandlerSQL7/SQL2000 Replication
Looking for a mid-level SQL Server Developer, NJ不想总做developer,各位前辈指教
【询问】T-SQL Procedure 比较好的学习资料Do replicated tables need identical?
求教:Oracle trigger 中生成的数据如何送到stored procedure中?Should replicated tables be in the same data?
PL/SQL 输入DATA这里有用sql server replication的吗?
has anyone used jConnect with Sybase?请问MySQL的replication不通过应用程序能达到strong consistence吗?
相关话题的讨论汇总
话题: set话题: identifier话题: quoted话题: xml话题: sql
进入Database版参与讨论
1 (共1页)
S***k
发帖数: 370
1
昨天xml type methods 出错, 执行 SET QUOTED_IDENTIFIER OFF 后就好了.把它设成
ON 能重复这个xml type methods 执行错误.
今天, 无论这个option 是ON 还是OFF, 都不出错了.
还有其它的 option 会影响xml type methods 的执行吗?
B*****g
发帖数: 34098
2
you may want to share us with:
SQL Server version
Table main structure
you sql or tsql



【在 S***k 的大作中提到】
: 昨天xml type methods 出错, 执行 SET QUOTED_IDENTIFIER OFF 后就好了.把它设成
: ON 能重复这个xml type methods 执行错误.
: 今天, 无论这个option 是ON 还是OFF, 都不出错了.
: 还有其它的 option 会影响xml type methods 的执行吗?

S***k
发帖数: 370
3
server 2008 with compatibility level 90.
the structure is a column with xml type.
In the stored procedure, the query likes:
update table
set xmlColumn.modify('replace value of (/blah/blah[data(.) = sql:variable("@
oldvalue")])[1] with sql:variable("@newValue")')
Suppose, the QUOTED_IDENTIFIER is a procedure specified option. In theory,
the option should be set to "ON" to use xml type methods.
What happened yesterday was if run "SET QUOTED_IDENTIFIER ON" as a query, or
alter another procedure with "SET QUOTED_IDENTIFIER ON", the execution of
the procedure with xml type methods failed. If I run "SET QUOTED_IDENTIFIER
OFF" as a query, then the execution of the procedure went though without any
issue.
This is really odd to me. Unfortunately, I could not replicated it anymore.
I am not the only one with admin permission on that sql server. It makes me
very confused, in what kind of situation set
QUOTED_IDENTIFIER option could be globalized to reset all procedures in the
database, and in what situation the quoted_identifier should be set to OFF
for xml type methods?

【在 B*****g 的大作中提到】
: you may want to share us with:
: SQL Server version
: Table main structure
: you sql or tsql
:
: 成

i****a
发帖数: 36252
4
look at yesterday's data. there must be a quote somewhere in the data
1 (共1页)
进入Database版参与讨论
相关主题
请问MySQL的replication不通过应用程序能达到strong consistence吗?【询问】T-SQL Procedure 比较好的学习资料
问个sqlserver replication的问题求教:Oracle trigger 中生成的数据如何送到stored procedure中?
Does T-SQL have bit shift function?PL/SQL 输入DATA
SQL Server DBA vs BI & DWhas anyone used jConnect with Sybase?
怎么样提高SQL SERVER的编程水平?请各位帮我看看这个最简单的Stored Procedure (转载)
为啥Oracle stored procedure 里面不建议用 temporary table?How to prevent primary key collision for replication
DB2 Stored Procedure Error HandlerSQL7/SQL2000 Replication
Looking for a mid-level SQL Server Developer, NJ不想总做developer,各位前辈指教
相关话题的讨论汇总
话题: set话题: identifier话题: quoted话题: xml话题: sql