How to view the error log for any specific instance? : sql server database administration
Answer / Shurveer Saxena
To view the error log for a specific SQL Server instance, you can use the SQL Server Management Studio (SSMS) or query the sys.syslog system catalog view directly from a query window. If using SSMS, go to Object Explorer, expand the instance name, then expand Management, and select Error Logs. To query the error log programmatically, run the following T-SQL command: SELECT * FROM sys.syslogs WHERE server_id = <instance_id> ORDER BY time_desc;
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we create a clustered index on composite primary key.
Why it is recommended to avoid referencing a floating point column in the where clause?
Do you know what guidelines should be followed to help minimize deadlocks?
How to get the count of distinct records. Please give me the query?
1.Describe way(s) to tune the SQL table in order to optimize performance. 2. Explain SQL Injection and how can you prevent them?
Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?
What is a coalesce function?
What is the difference between SQL notification and SQL invalidation?
what are the basic functions for master, msdb, model, tempdb and resource system databases? : sql server database administration
Why main is user defined function?
What do you understand by mirroring and mention the advantages of the mirroring?
Difference between Inner vs outer joins?
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)