Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can i lock the column in the table

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


Please Help Members By Posting Answers For Below Questions

What is order of B+tree?

1109


Explain system views?

1093


Explain what is public role in sql server?

1140


What is logon trigger?

1105


How do I clean up sql server transaction log?

1072


What does man by sql wildcard characters in sql server?

1066


Which database stores information about replication?

1073


What is rolap and its advantage? : sql server analysis services, ssas

1286


How to throw custom exception in Stored Procedure?

1047


What is collation?

1146


What is the difference between NOROW and LOCKROW?

2844


How to disable triggers using "disable trigger"?

1061


What are different types of raid levels?

1174


What is row_number()?

988


What is the significance of master, tempdb and model databases?

1082