摘要: select getdate() 结果:2003-12-28 16:52:00.107 select convert(char(8),getdate(),112) 结果:20031228 select convert(char(8),getdate(),108) 结果:16:52:00 select convert(char(8),getdate(),112) ... 阅读全文
posted @ 2007-10-26 14:16 netcorner 阅读(199) 评论(0) 推荐(0) 编辑
摘要: declare @filename nvarchar(100) set @filename='d:\\dbbak\\test+convert(char(10),getdate(),112) print @filename BACKUP DATABASE [test] TO DISK = @filename WITH NOINIT , NOUNLOAD , NAME = N'test... 阅读全文
posted @ 2007-10-26 14:14 netcorner 阅读(203) 评论(0) 推荐(0) 编辑