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 |
What is the difference between the following two sql statements select count(*) from <tablename> select count(col_name) from <tablename>
What are the different Authentication modes in SQL Server and how can you change authentication mode?
what are statistics, under what circumstances they go out of date, how do you update them? : Sql server database administration
What is Covering Indexes? Plz explain with example
How to find out name of all employees who has salary less than 200 Rs.?
Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?
what is the use of database index(apart from the last searching of records) and what is the use of composite key?
What are the two modes of authentication in sql server?
How to connect to a sql server using odbc_connect()?
What is difference between join and natural join?
What are the advantages of mirroring?
How to perform key word search in tables?
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)