Copy Logins to another server with SIDs and passwords
I often need to replicate logins to another SQL Server where the SID and password (for SQL login types, not Windows based) need…
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 – 1794
Read MoreHere are some resources and tools for exploring WMI for PowerShell development: WMI Explorer – SorceForge Views – 1963
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 MoreThis query will return, filter and sort the groups an AD account is a member of:
1 |
Get-ADPrincipalGroupMembership lboveeadm | select name | sort name |
This query will return the AD…
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 – 2011
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