I
I
Igor Krivintsov2018-05-09 12:11:49
SQL Server
Igor Krivintsov, 2018-05-09 12:11:49

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

1 answer(s)
D
d-stream, 2018-05-09
@wizart23

And who said that old copies will be overwritten?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question