2016-04-21 19 views
1

Azureプロデューサに問題があります。 Geographyプロパティを定義したエンティティがあります。その表に地理空間索引を作成しました。私たちはそのテーブルに挿入または更新を行う場合は、我々はfollowindエラーを取得:引用符付きの識別子エラーCodefluent

INSERT failed because the following SET options have incorrect settings: ‘QUOTED_IDENTIFIER’. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations.

我々は落下し、このテーブルのすべてのストアドプロシージャを復元することによって、エラーを解決しますが、今上の識別子を引用したセット。

問題は、プロデューサを実行するたびに、ストアドプロシージャが削除され、見積IDがOFFで作成されることです。この状況をどうやって解決できますか?

答えて

1

あなたはファイルの先頭にset quoted_identifier ONを生成するために、SQL Serverのプロデューサーを構成することができます。

<cf:producer name="SQL Server" typeName="CodeFluent.Producers.SqlServer.SqlServerProducer, CodeFluent.Producers.SqlServer"> 
    <cf:configuration quotedIdentifier="ON" ... /> 
</cf:producer> 
関連する問題