While I have insert value in databas table ,
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ramachandran MRank #2,660 · 522 reputationPosted Jan 24, 2020, 10:38 AM EST
Rupesh KahaneRank #136 · 16.4K reputationPosted Jan 24, 2020, 11:23 AM EST
indradeo kumarRank #4,089 · 366 reputationPosted Jan 25, 2020, 1:01 PM EST
Ramachandran MRank #2,660 · 522 reputationPosted Jan 27, 2020, 5:38 AM EST
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 kumarRank #4,089 · 366 reputationPosted Jan 28, 2020, 5:25 AM EST