skip to main
|
skip to sidebar
Timo Witza Enterprise IT Consulting
Tipps, Tricks, Workarounds und Erfahrungen aus der Praxis
Dienstag, 7. Juli 2015
SQL Server: shrink all transaction logs in an instance
-- shrinks all transaction log files with default logical file naming convention
EXEC
sp_msForEachDB
'PRINT ''
USE ?
GO
ALTER DATABASE ? SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE(''''?_log'''',1)
GO
ALTER DATABASE ? SET RECOVERY FULL
GO''
'
Keine Kommentare:
Kommentar veröffentlichen
Neuerer Post
Älterer Post
Startseite
Abonnieren
Kommentare zum Post (Atom)
Dieses Blog durchsuchen
Labels
.net
32-bit
64-bit
Acronis
c#
cluster
cmd
database mail profile
database snapshot
db_owner
DBCC
dbo
deadlock
delete
dtexec
evaluation period
Event log Service
Excel
grace
grace period
Härtung
Hyper-V
Hypervisor
Locks
logins
MAK
messages
mirroring
MOC
MS Office
MS SQL Server
mscs
msdb
Notfall-Wiederherstellung
OCR
OneNote
period
PowerPoint 2010
Produktaktivierung
rearm
Registry
Reporting Services
script
Sharepoint 2010
shrink
shrinkfile
sp_changedbowner
sp_MSforeachdb
SP3
SQL Security
SQL Server
SQL Server 2005
SQL Server 2008
SQL setup
SSIS
SSMS
SSRS
Storage Foundation
T-SQL
tables
Transaction Log
Transaktionsprotokoll
Troubleshooting
users
veritas
vhd
Virtual Server
VMWare
windows
Windows 7
Windows Server 2003
Windows Server 2008
Windows Vista
Windows XP
Posts
MS SQL cluster: determine active node via T-SQL
MS SQL Server 2008 R2: code behind a blocking process
MS SQL Server 2008 R2: Transaktionsprotokoll shrinken
MS SQL Server R2: view blocked processes
On-Screen-OCR mit OneNote
Windows Server 2008: display and extend Windows activation grace period
Windows: login keyboard layout
Seiten
Startseite
Keine Kommentare:
Kommentar veröffentlichen