• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Calling a stored procedure from T-SQL

Bulldog13

Golden Member
I have an insert trigger on TABLE_A. On insert into TABLE_A, it takes Inserted.SSN and Inserted.PK and puts them into a TABLE_B.


declare @SSN varchar(9);


INSERT INTO [dbo].[TABLE_B]
(SSN, ID)
SELECT INSERTED.SSN,
INSERTED.PK
From INSERTED

select @SSN = Inserted.ssn from inserted


I want to add onto this trigger so that I can run a stored procedure on the Inserted.SSN and retrieve the results.

exec dbo.spGet_Member_POC @SSN

[what t-sql magic here to capture the result ?]
 
Back
Top