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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
G Y
1.5k
229
44k
Update trigger to be initiated, when there is any change on any column
Jan 16 2021 10:18 AM
Update trigger to be initiated, when there is any update on any column in dummytable other than ModifiedDate and UserModified column changes (update trigger should not consider the changes on ModifiedDate and UserModified columns)
CREATE
TABLE
[dbo].[dummytable](
[ID] [
int
]
NOT
NULL
,
[code] [
varchar
](50)
NULL
,
[codevalue] [
varchar
](50)
NULL
,
[codedescription] [
varchar
](50)
NULL
,
[IsAdmin] [
bit
]
NULL
,
[FirstName] [
varchar
](50)
NULL
,
[LastName] [
varchar
](50)
NULL
,
[createdUser] [
int
]
NULL
,
[CreatedDate] [datetime]
NULL
,
[UserModified] [
int
]
NULL
,
[ModifiedDate] [datetime]
NULL
,
PRIMARY
KEY
CLUSTERED
(
[ID]
ASC
)
WITH
(PAD_INDEX =
OFF
, STATISTICS_NORECOMPUTE =
OFF
, IGNORE_DUP_KEY =
OFF
, ALLOW_ROW_LOCKS =
ON
, ALLOW_PAGE_LOCKS =
ON
)
ON
[
PRIMARY
]
)
ON
[
PRIMARY
]
GO
Reply
Answers (
3
)
Database design problem
Efficient query writing