SET 选项的设置不正确,请问该怎么设置
我用我的应用程序插入SQL server 2005 Express数据库提示这样的错误
应用程序是用PowerBuilder开发,保存的时候提示这样的错误
错误代码(sqldbcode):
1934
错误情况(sqlerrtext):
INSERT 失败,因为下列 SET 选项的设置不正确:'ANSI_NULLS, QUOTED_IDENTIFIER, CONCAT_NULL_YIELDS_NULL, ANSI_WARNINGS, ANSI_PADDING'。请确保 SET 选项可正确用于计算列和/或查询通知和/或 xml 数据类型方法的索引视图和/或索引。
--IDinfo字段为计算列 加起来的 我想应该是这里出的问题
CREATE TABLE [info_rep](
[IDinfo] AS (([equipment]+CONVERT([char](8),[importtime],(112)))+[samplenum]),
[equipment] [varchar](4) COLLATE Chinese_PRC_CI_AS NOT NULL,
[importtime] [datetime] NOT NULL,
[samplenum] [varchar](4) COLLATE Chinese_PRC_CI_AS NOT NULL,
[typepat] [varchar](4) COLLATE Chinese_PRC_CI_AS NULL,
[idpat] [varchar](20) COLLATE Chinese_PRC_CI_AS NULL,
[namepat] [varchar](30) COLLATE Chinese_PRC_CI_AS NULL,
[sexpat] [char](1) COLLATE Chinese_PRC_CI_AS NULL,
[agepat] [varchar](3) COLLATE Chinese_PRC_CI_AS NULL
)
高手请教该怎么设置那几个值
我想直接在数据库参数里设置
------解决方案--------------------查一下你的QUOTED_IDENTIFIER 选项是ON还是OFF.
SET QUOTED_IDENTIFIER must be ON when you are creating or changing indexes on computed columns or indexed views. If SET QUOTED_IDENTIFIER is OFF, CREATE, UPDATE, INSERT, and DELETE statements on tables with indexes on computed columns or indexed views will fail. For more information about required SET option settings with indexed views and indexes on computed columns, see "Considerations When You Use the SET Statements" in SET Statements (Transact-SQL).