I am attempting to call some table inserts from a piece of code on a table where i am attempting to create the following trigger (which calls the first shown stored procedure)
stored procedure
create proc sp_InitProposal @sanum int as INSERT INTO priceinfo (sanum,jobnum,altnum) values (@sanum,1,1)
question is, how do i use a trigger to use a field from the table i am applying the trigger to?
trigger
create trigger t_InitProposal on proposal for insert as exec sp_InitProposal [dbo].[proposal].[sanum]
When trying to make the trigger, it wont take with the reference to the [dbo].[proposal].[sanum]
ive tried everywhich way to make this work..it works of course if i say sp_InitPropsal(2001) etc..
argh!
stored procedure
create proc sp_InitProposal @sanum int as INSERT INTO priceinfo (sanum,jobnum,altnum) values (@sanum,1,1)
question is, how do i use a trigger to use a field from the table i am applying the trigger to?
trigger
create trigger t_InitProposal on proposal for insert as exec sp_InitProposal [dbo].[proposal].[sanum]
When trying to make the trigger, it wont take with the reference to the [dbo].[proposal].[sanum]
ive tried everywhich way to make this work..it works of course if i say sp_InitPropsal(2001) etc..
argh!