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
Amudhan Kuppan
NA
378
29.8k
i have one doubt for trigger
Mar 8 2018 10:22 PM
hi
anyone help me i cant understand this task
i will send requirement
Create student hisotry table
so when ever update or insert record in student table its marks in this table
table structure
id
StudentID (id of student table)
ColumnName
OldValue
NewValue
UpdatedDatetime
please create trigger for this
i want to show history for student table what ever changes are done in student table should be show in table.
when i am change name of any record
i.e Ram to Raju
than insert data with that record id, Column Name='Name' old value ='Ram' New value ='Raju'
SELECT [ID]
,[StudentID]
,[ColumnName]
,[OldValue]
,[NewValue]
,[Updateddatetime]
FROM [IT TEST].[dbo].[StudentHistory]
this is my student history record table structure
SELECT [ID]
,[FirstName]
,[LastName]
,[DateOfBirth]
,[Fathername]
,[MotherName]
,[Gender]
,[Height]
,[Weight]
FROM [IT TEST].[dbo].[Student]
this is my table structure for student
Reply
Answers (
22
)
i have one doubt for sql(trigger)
I have one doubt for SSIS (SQL Server Integeration Services)