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
How does normalization work?
How can I check that whether automatic statistic update is enabled or not?
What is the difference between a function and a stored procedure?
Distinguish between commit and rollback?
Do you know clustered and non-clustered index?
Define the one-to-one relationship while designing tables.
What are different types of table joins?
what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?
Why is the need for data conversion transformations?
How do we synchronize On-Premise SQL server with SQL Azure?
What is the difference between web edition and business edition?
you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration
Describe in brief system database.
How do I change my passwords (database, LDAP, and so on) without causing an outage?
How to populate a table in sql server?