posts - 73,  comments - 44,  trackbacks - 1
01 2010 档案
SQLSERVER2005 数据库备份脚本
摘要: DECLARE @strPath NVARCHAR(200)set @strPath = replace(replace(replace(CONVERT(varchar, getdate(), 120 ),'-',''),' ',''),':','')set @strPath = REPLACE(@strPath, ':' , '.')set @strPath = 'E:\Backup\Mis.B...阅读全文
posted @ 2010-01-13 16:44 白沙河 阅读(387) | 评论 (0) 编辑
SQLSERVER 获得 错误消息
摘要: alter procedure testexceptionasdeclare @date datetime;beginbegin try set @date=cast('200012' as datetime); select @date;end trybegin catch select * from master.dbo.sysmessages where [error] = @@error;...阅读全文
posted @ 2010-01-06 18:00 白沙河 阅读(9) | 评论 (0) 编辑