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

Answers were Sorted based on User's Feedback



how can i lock the column in the table..

Answer / arunkumar2visit

create trigger trigger_name
on tablename
for update
as
if update(col_name)
begin
raiseerror('cannot update column name',16,1)
rollback trac
end

Is This Answer Correct ?    29 Yes 2 No

how can i lock the column in the table..

Answer / 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

More SQL Server Interview Questions

Mention the different types of triggers?

0 Answers  


What is sql injection? How to protect against sql injection attack?

0 Answers  


How do you drop an index?

0 Answers  


What triggers long term care?

0 Answers  


Which databases are part of SQL server default installation? Explain the usage of each?

2 Answers   Accenture,


List the types of recovery model available in sql server?

0 Answers  


Tell me about joins in database system and explain each in detail.

0 Answers   Axtria, ITC Indian Tobacco Company,


What are the advantages of partitioning?

0 Answers  


What is indexed view? How to create it?

0 Answers  


What are the disadvantages of using querystrings to send data from one page to another?

0 Answers  


What is difference between aggregate and analytic function?

0 Answers  


How to modify an existing stored procedure in ms sql server?

0 Answers  


Categories