Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How to write Insert Trigger for table in Sql Server

(0) ShareShare
ReportReport
Posted on by 592

Solution :

              

CERATE TRIGGER Triggername
ON TABLE NAME
AFTER INSERT
 AS
BEGIN
DECLARE @DOCUMBERNUMBER varchar(50)
select @DOCUMBERNUMBER = (FIELD NAME)from inserted
 --Here you can write your logic
END

     

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans