摘要: BEGIN tryCreate table OurIfTest(col1 int primary key)end trybegin catchdeclare @errorNo int,@severity tinyint,@state smallint,@lineNo int,@message nvarchar(4000)select @errorNo=ERROR_NUMBER(),@severity=ERROR_SEVERITY(),@state=ERROR_STATE(),@lineNo=ERROR_LINE(),@message=ERROR_MESSAGE()IF @errorNo=271 阅读全文
posted @ 2013-05-03 10:57 viola 阅读(156) 评论(0) 推荐(0) 编辑