Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 INSTEAD OF trigger problem ... HELP!

Author  Topic 

wgpubs
Yak Posting Veteran

67 Posts

Posted - 2004-05-08 : 12:27:32
I'm getting this error when I try to compile the following INSTEAD OF trigger ... and its driving me mad!

error: Incorrect syntax near 'inserted'.

CREATE TRIGGER sampleTrig_INS ON [dbo].[my_view]
INSTEAD OF INSERT
AS
BEGIN
SET NOCOUNT ON
INSERT my_table (Column1)
SELECT Col1
FROM inserted

GO

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-05-08 : 15:31:10
This is a duplicate post. You need to have an END on here. Please do not post duplicate posts.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -