Random thoughts and bits of Software Dev Knowledge
Collection of unedited thoughts and bits of knowledge I can't seem to remember
Search This Blog
Showing posts with label
truncate transaction log
.
Show all posts
Showing posts with label
truncate transaction log
.
Show all posts
Monday, January 5, 2009
Truncate Transaction log SQL Server 2000
Get database name:
SELECT * FROM master.dbo.sysdatabases
Get File group ID
Use [db_name]
select * from dbo.sysfiles
Truncate and shrink Transaction file:
Use [db_name]
BACKUP LOG [db_name] WITH TRUNCATE_ONLY
DBCC SHRINKFILE (fileID)
Older Posts
Home
Subscribe to:
Posts (Atom)