Answer the question
In order to leave comments, you need to log in
How to backup MS SQL Server Express?
There is a script written in sql, tell me how to make it so that when the script is executed. old copies were not overwritten?
Page to the site with an article on the script
The script itself
declare PaTh varchar(max)=N'C:\Backup\BASE_backup_'+convert(varchar(max),getdate(),102)
BACKUP DATABASE [BASE_NAME] TO DISK = PaTh WITH COPY_ONLY , NOFORMAT, NOINIT, NAME = N'BASE_NAME-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question