If I do the following: (all done in the same database)
backup log databasename
to disk = 'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\filename.trn'
go
backup log databasename with truncate_only
go
dbcc shrinfile('logicalname_log', 500)
go
Is there any chance of losing any transactions between the backup of the log and the truncation of the log?
Thanks!
backup log databasename
to disk = 'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\filename.trn'
go
backup log databasename with truncate_only
go
dbcc shrinfile('logicalname_log', 500)
go
Is there any chance of losing any transactions between the backup of the log and the truncation of the log?
Thanks!