how can i lock the column in the table
Answers were Sorted based on User's Feedback
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 |
Mention the different types of triggers?
What is sql injection? How to protect against sql injection attack?
How do you drop an index?
What triggers long term care?
Which databases are part of SQL server default installation? Explain the usage of each?
List the types of recovery model available in sql server?
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?
What is indexed view? How to create it?
What are the disadvantages of using querystrings to send data from one page to another?
What is difference between aggregate and analytic function?
How to modify an existing stored procedure in ms sql server?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)