Cycle Error Logs
sp_cycle_errorlog
Force a database out of "Restoring..." Mode
RESTORE DATABASE WITH RECOVERY
Find duplicated column data
select
convert(varchar(20), a.[samaccountname]) as [user],
convert(varchar(20), a.[domainname]) as [domain],
from BTS_ActiveDirectoryReporting.dbo.Users as a
where a.[samaccountname] in
(select z.[samaccountname]
from BTS_ActiveDirectoryReporting.dbo.Users as z
group by z.[samaccountname]
having count(*) > 1)
Search for a column in a specific table
select COLUMN_NAME