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
Can you type more than one query in the query editor screen at the same time?
can a table be moved to different filegroup? : Sql server administration
How to defragment table indexes?
what are user defined datatypes and when you should go for them? : Sql server database administration
What is relationship? What number of sorts of relationship are there?
What is de-normalization and what are some of the examples of it?
Beginning with sql server version 7 0, a new enhanced data type nchar was added what type of data is supported with this data type?
What happens if you insert a duplicate key for the primary key column in ms sql server?
What is difference between sql and sql server?
What is database isolation in sql server? : sql server database administration
What is data source in connection string?
What’s the use of custom fields in report?
What is auditing in sql server?
How do I connect to sql server database?
What is bcp? When does it use?