Register
|
Login
Home
Add Question
Add Article
Categories
Latest Articles
Tags
Contact Us
Search:
Search questions and share your knowledge with the world here on Questionpoint.
Home
>
SQL Server Triggers Interview Questions
>
I have a trigger on table1 for update. Can this tr...
:: Categories ::
SQL Server 2000(410)
SQL Server 2005(387)
SQL Server 2008(73)
SQL Server Analysis Services (SSAS)(4)
Backup and Recovery(90)
Stored Procedures(877)
SQL Server Clustering(20)
Common Language Runtime (CLR)(0)
Common Table Expressions (CTE)(0)
Data Management(25)
Data Transformation Services (DTS)(18)
SQL Server Administration(56)
SQL Server Configurations(63)
Database Design(106)
Data Mining(11)
Data Warehousing(12)
SQL Server Mirroring(4)
SQL Server Triggers(60)
SQL Server Disaster Recovery(0)
SQL Server Indexing(89)
Service Packs and Patches(27)
SQL Server Performance Tuning(65)
SQL Server Query Optimization(1)
SQL Server Security(71)
SQL Server Integration Services(13)
SQL Server Management Studio(106)
Microsoft Service Broker(0)
Community Service Broker(0)
Microsoft Transact-SQL(77)
ADO.NET Entity Framework(0)
Microsoft Integration Services(0)
SQL Server Reporting Services (SSRS)(38)
SQL Server Data Services (SSDS)(26)
SQL Server 2005 Driver for PHP(12)
SQL Server Certifications(58)
SQL Server Jobs(119)
SQL Server Gadgets(0)
Miscellaneous(0)
Sql Server Views(80)
Replication(10)
Interview Question in SQL Server Triggers
Interview Question :: I have a trigger on table1 for update. Can this trigger update table1 too? Does it cause Deadlock
I am using SQL Server 2000.
Answers to "I have a trigger on table1 for update. Can this trigger update table1 too? Does it cause Deadlock"
RE: I have a trigger on table1 for update. Can this trigger update table1 too? Does it cause Deadlock?
Triggers are evil and should be avoided at all costs. Try to find another way to accomplish the task
Vote for this answer ::
RE: I have a trigger on table1 for update. Can this trigger update table1 too? Does it cause Deadlock?
You should be fine, this sort of behavior is normal. However, if the target field is always a reflection of some other field you may want to consider using a computed field instead.
Vote for this answer ::
RE: I have a trigger on table1 for update. Can this trigger update table1 too? Does it cause Deadlock?
Well trigger on a particular table are many times for the same table.. as for example: if we update positioln of employee then salary must be updated this trigger shall not coz a deadlock.
Vote for this answer ::
Notify me whenever an answer is posted for this question
Update Alert Setting
Loading ...
Top Tags
sql server log(1)
sql server insert(1)
sql server download(1)
sql server date(1)
sql server backup(1)
sql server stored procedure(1)
sql server service(1)
sql server reporting(1)
sql server net(1)
microsoft sql server 2005(1)
sql server studio(1)
sql server services(1)
sql server query(1)
sql server management(1)
sql server express(1)
ms sql server(1)
sql server database(1)
microsoft sql server(1)
sql server 2000(1)
sql server 2005(1)