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 having clause and where clause in sql server?
what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration
When we are using this query to shrink the log file,what exactly it will execute internally? Do we lose any data when we run this script? which data it will truncate in the log file and where it is saved. Please let me know... USE DatabaseName GO DBCC SHRINKFILE(<TransactionLogName>, 1) BACKUP LOG <DatabaseName> WITH TRUNCATE_ONLY DBCC SHRINKFILE(<TransactionLogName>, 1) GO
What is user-defined function?
What are different backups available in sql server?
Do you have any idea about the tcl commands?
Do you know what is openxml in sql server?
Define Unique Key?
What is use of except clause?
what is unique and xaml nonclustered index
what is the difference between writing data to mirrored drives versus raid5 drives. : Sql server administration
What are ddl triggers and types of ddl trigger?
Oracle (3253)
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)