Viewing 5 posts - 1 through 5 (of 5 total)
Have written an SP that does what I need, thanks to people for suggesting cursors. Antares, I don't know why your trigger didn't work on my table as it all...
March 22, 2004 at 9:54 am
OK, still no luck but am looking into looping through each record using cursors.
Antares686 et al who suggested the same, I have tried joining to the inserted table but to...
March 22, 2004 at 8:59 am
Here's the original trigger, MobID and ServNum make up a composite primary key.
CREATE TRIGGER [RecStat] ON dbo.tblMobilisationTransaction
FOR INSERT
AS
DECLARE @MobID as varchar (7)
DECLARE @ServNum as char (9)
SELECT @MobID =(SELECT...
March 22, 2004 at 2:46 am
Thanks for that fella, still no joy though. The engine just doesn't seem to like it when it has to run an update query that affects more than one record...
March 19, 2004 at 4:56 am
Already checked that, inserted those values into a table and it only returned one record.
If I specify just one record for the update query it works, however as soon...
March 18, 2004 at 6:09 am
Viewing 5 posts - 1 through 5 (of 5 total)