“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 MoreAll things SQL Server
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 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 – 1814
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 MoreI am documenting known issues I have run into with Devarts’ Studio for SQL Server here. I want to state up front that…
Read MoreHere is a great blog post by Kimberly Tripp on why using GUIDs as a PRIMARY KEY on a CLUSTERED index is a…
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 – 2039
Read MoreHere is a great blog post explaining the different SQL Server page types and how they work: Understanding Pages and Extents Views –…
Read More