While I have insert value in databas table ,
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
indradeo kumarPosted Jan 28, 2020, 10:25 AM
Ramachandran MPosted Jan 27, 2020, 10:38 AM
ON TABLENAME
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
DECLARE @USERID INT
DECLARE @INSERTEDID INT
DECLARE @TAID INT
SELECT @USERID =I.USERID ,@TAID=FORMAT(CAST(TAID AS INT),'000','en-US'), @INSERTEDID =I.PRIMARYID
FROM
inserted i
UPDATE TABLENAME SET COLUMNAME = USERID+@TAID WHERE ID =@INSERTEDID
indradeo kumarPosted Jan 25, 2020, 6:01 PM
Rupesh KahanePosted Jan 24, 2020, 4:23 PM
Ramachandran MPosted Jan 24, 2020, 3:38 PM