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 |
Table student containing 2 columns,Join date,Employee name. Under join date 4 rows r ter =1-jan-2008,2-feb-2008,3-mar- 2008,4-feb-2008.Under Employee name 4 difeerent names jaison,robin,binoy,rahul Result set is, Table containing 4-column name=jan,feb,mar,april,,beneath these months count is given as 1,2,1,0 means these counts representing number of emplooyees joined in a month(january 1employee,february 2 employee,march 1 employee,april 0 employee) Can you give me the required sql query
What command is used to create a database in the sql server and how?
Explain magic tables in sql server?
What objects does the fn_my_permissions function reports on? : sql server security
Which TCP/IP port does SQL Server run on?
What are the different ways of moving data/databases between servers and databases in SQL Server?
How to skip remaining statements in a loop block using continue statements?
One table Test with single column. These are the values in the table a b c d e f g h I need a query (without using any variable) with output as - a b c d f f g h
What are 3 ways to get a count of the number of records in a table?
How to find the list of fixed hard drive and free space on server?
What is sub query and its properties?
Explain difference between cross join and full outer join?
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)