I have a small doubt.
Each and every error in sqlserver is logged in sql server error log.
So if a dead lock occurs the errors should be logged in to the error log.
Then for troubleshooting deadlocks we have to enable traceflags 1204 and 1222.
Why we have to enable these trace flags . Is there any peculiar advantage with these trace flags. if we not enable these flags whether deadlock information will be logged in to the error log or not.