I?m getting an error when I execute a stored procedure which is try to insert a row to a table.
The error is:
Server: Msg 1934, Level 16, State 1, Procedure SRV_SP_IS_EMRI_ SATIRI_EKLE, Line 32
INSERT failed because the following SET options have incorrect settings: 'ANSI_NULLS.'.
In my sp, I insert an row to a table. But also I created a view which is select some fields from this table.
(Note: Some fields are calculated fields in this view. To see if calculated fields cause this error , I didnt selec calculated fields in the view, but I?m still getting this insert error.One more note: My indexed field is an identity field also.) I think, index causes this error. But I cant find my error.
Thank you for your help...
To do this view, I execute this code:
drop view SRV_V_GARANTILI _IS_EMRI_SATIRL ARI_T
go
CREATE VIEW dbo.ViewT
with SCHEMABINDING AS
SELECT
S.FieldA,
....S. FieldH
FROM
dbo.TABLE S
WHERE
(S.FieldA = 1) AND (S. FieldB IS NULL) AND (S.FieldH IN (0,1))
go
SET NUMERIC_ROUNDAB ORT OFF
GO
SET ANSI_PADDING,AN SI_WARNINGS,CON CAT_NULL_YIELDS _NULL,ARITHABOR T,QUOTED_IDENTI FIER,ANSI_NULLS ON
GO
create unique clustered index ViewT_IX_FieldA on ViewT (FieldA)
go
*************** *************** ***********
* This message was posted via http://www.sqlmonster.com
*
* Report spam or abuse by clicking the following URL:
* http://www.sqlmonster.com/Uwe/Abuse....4cddba67ade8b6
*************** *************** ***********
Comment