January 27, 2023 at 11:04 am
INIT
Specifies that all backup sets should be overwritten, but preserves the media header. If INIT is specified, any existing backup set on that device is overwritten, if conditions permit. By default, BACKUP checks for the following conditions and does not overwrite the backup media if either condition exists:
Any backup set has not yet expired. For more information, see the EXPIREDATE and RETAINDAYS options.
The backup set name given in the BACKUP statement, if provided, does not match the name on the backup media. For more information, see the NAME option, earlier in this section.
https://learn.microsoft.com/en-us/sql/t-sql/statements/backup-transact-sql?view=sql-server-ver16
January 27, 2023 at 12:19 pm
This was removed by the editor as SPAM
January 27, 2023 at 5:18 pm
This essentially initializes the file so that only this backup is written to this file.
January 27, 2023 at 7:11 pm
what does the backup log init do?
It compels me to point out that folks should read the documentation. 😀 Here's the link...
https://learn.microsoft.com/en-us/sql/t-sql/statements/backup-transact-sql?#-noinit--init-
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply