Answer Posted / prasad237
create trigger trigger_name1
on emp
for update
as
begin
if update(ename)
begin
begin tran
raiserror('cannot update column name',16,1)
rollback tran
end
else
print 'table updated'
end
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is reportserver and reportservertempdb ?
do you know how to configure db2 side of the application? : Sql server database administration
What is acid mean in sql server?
Can we call future method from trigger?
What is a data source file?
What do you mean by a Composite primary key?
What is the difference between a "where" clause and a "having" clause?
What’s the use of custom fields in report?
Is there any difference between the primary key and unique key?
What is default constraint?
What is the difference between NOROW and LOCKROW?
What is scrollable cursor?
What are user defined functions in ms sql server?
State the difference between local and global temporary tables?
What is database isolation in sql server? : sql server database administration