TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Trigger to Stop Transaction During Christmas Holiday
Sandeep Kumar
Feb 05
2016
Code
634
0
2
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
trigger to stop any
create
trigger
trgHoliday
on
BankAccount
After
insrt,
update
delete
as
begin
if datepart(mm,getdate())=
'December'
and
if datepart(dd,getdate())=
between
(15
and
26)
begin
rollback
raiseerror(
'Sorry....We are on Christmas holiday so.. please visit us again after Christmas'
)
End
End
Trigger
SQL
Trigger for Stop Transaction