“Why can’t I truncate my log file?!?”
I found a VERY useful query from Brent Ozar’s daily emails that go out on how you can check for the reason SQL…
Read MoreI found a VERY useful query from Brent Ozar’s daily emails that go out on how you can check for the reason SQL…
Read MoreThis post is based on Tara’s recent blog post over on Brent Ozar’s site: and another: Basically, a query is killing your tempDB.…
Read MoreI often need to replicate logins to another SQL Server where the SID and password (for SQL login types, not Windows based) need…
Read MoreI sometimes need to rebuild the log-shipping for a database and if it is a large database the windows dialogs only display the…
Read MoreYou can recycle the SQL Error Logs without restarting the SQL service by using either of these 2 commands:
1 2 3 4 5 6 7 8 9 10 |
USE master; GO -- system sproc EXEC SP_CYCLE_ERRORLOG; -- or -- DBCC command DBCC ERRORLOG; |
Views – 1790
Read MoreImportant to note: if you switch from SIMPLE recovery model to FULL, you will need to take a full backup, otherwise you are…
Read More
1 2 3 4 5 6 7 8 9 10 11 12 |
USE master; GO SELECT name, dbname FROM syslogins WHERE dbname = 'MyDatabase' ORDER BY dbname SELECT name AS LoginName, default_database_name FROM sys.server_principals WHERE default_database_name IS NOT NULL ORDER BY default_database_name |
Views – 2005
Read MoreThe “Backup set will Expire” option is used to indicate how long a backup should be prevented from being over written by another…
Read MorePASS 2015 10-28-30 Seattle WA SQL Server Indexing for Performance Kimberly Trip NOTE: Narrow NC indexes very rarely are useful. NOTE: Putting a…
Read MorePASS 2015 10-27-30 Seattle WA Pre-Con Day 2 – SQL Server Internals – The Practical Angle Dmitri Korotkevitch Data Storage 101 Data Pages…
Read More