Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32) Expand / Collapse
Author
Message
Posted Tuesday, March 11, 2014 10:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, March 11, 2014 10:01 AM
Points: 2, Visits: 0
CAN SOMEONE tell me what is wrong with this code

I have two tables LicParcela, and LicKo , I want, when i Draw ( insert) new Parcela ( Polygon type), to check in With LiKo (Polygon) is, and to give LicParcela.LicKoId that Id of LicKo

CREATE TRIGGER ubacujeKoIdZaParcelu
ON dbo.LicParcela
AFTER INSERT,UPDATE
AS
BEGIN
DECLARE @c int
SET @c=(SELECT LicKo.LicKoId FROM LicKo,LicParcela
WHERE LicKo.geom.STContains(LicParcela.geom)=1
)
UPDATE LicParcela
SET LicParcela.LicKoId=@c
END
GO

Post #1549828
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse