标签:server varchar 数据库 mat ace stat log ini date
DECLARE @fileName nvarchar(100)
SET @fileName=‘C:\DataBase_Back\Base‘ + REPLACE(REPLACE(REPLACE(REPLACE(CONVERT(VARCHAR(100), GETDATE(), 121), ‘ ‘, ‘‘), ‘:‘, ‘‘), ‘-‘, ‘‘), ‘.‘, ‘‘) + ‘.bak‘
BACKUP DATABASE [BaseData] TO DISK = @fileName WITH NOINIT , NOUNLOAD , NAME = N‘数据库-备份‘, NOSKIP , STATS = 10, NOFORMAT
标签:server varchar 数据库 mat ace stat log ini date
原文地址:http://www.cnblogs.com/yelanggu/p/6424185.html