CREATE TRIGGER MyTrigger ON TableA
DECLARE @COLUMN1 AS NVARCHAR
DECLARE @COLUMN2 AS NVARCHAR
DECLARE @COLUMN3 AS NVARCHAR
SELECT @COLUMN1=COLUMN1,@COLUMN2=COLUMN2 FROM INSERTED
EXEC STOREDPROCEDURE @COLUMN1,@COLUMN2,@COLUMN3=?
i have two tables named table A and Table B and for the insertion purpose i have two stored procedure for both table. and when Table A's stored procedure will executes successfully a trigger will fire to call Table B's Stored procedure But My Question is How to pass parameter to Table B's stored procedure? as in my case table A does not contain column3 but in Table B i need To insert data in Column3
Make @COLUMN3 parameter in Table B storedprocedure as optional parameter.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)