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
 SQL Server Development (2000)
 Multi Row Trigger

Author  Topic 

KevinMunro
Starting Member

7 Posts

Posted - 2004-12-10 : 10:27:20
Hello,

I get this error message when doing a 'select into x from y' query. How can I convert my sp to work with multiple rows?

Error: "Only single row inserts are supported within this trigger"

Updated - the code I posted was the wrong code and this error is raised by the code. So please ignore post and oops, sorry

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-12-10 : 10:49:36
why do you need??

SET @numrows = @@rowcount
IF @numrows = 1
BEGIN
...
END

Go with the flow & have fun! Else fight the flow
Go to Top of Page

KevinMunro
Starting Member

7 Posts

Posted - 2004-12-10 : 10:55:47
Yes, it is superfluous. Error is thrown before check is made.

Kevin.
Go to Top of Page
   

- Advertisement -