文章来源于:http://www.cnblogs.com/skywind/archive/2006/08/09/471939.html
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <skywind>
-- Create date: <2006.8.9>
-- Description: <backup a database auto>
-- =============================================
CREATE PROCEDURE [dbo].[prcd_BackupTmp]
AS
BEGIN
DECLARE @return_value char(17)
select @return_value = 'D:\'+convert(char(10), getdate(),120)+'.BAK'
BACKUP DATABASE rose TO DISK=@return_value
END