怎样对SQL Server 2005存储过程解密

豆豆网   技术应用频道   2008年05月09日    社区交流

内容摘要:要查密文必须使用DAC(专用管理员连接)连接到数据库后,在系统表sys.sysobjvalues查询,该表的列imageval存储了相应的密文。

  SELECT @Line = NULL

  END

  ELSE

  --如果回车没找到

  BEGIN

  IF @BasePos <= @TextLength

  BEGIN

  --如果@Lines长度的新值大于定义的长度

  While (isnull(LEN(@Line),0) + @BlankSpaceAdded +

  @TextLength-@BasePos+1 ) > @DefinedLength

  BEGIN

  SELECT @AddOnLen = @DefinedLength -

  (isnull(LEN(@Line),0) + @BlankSpaceAdded)

  INSERT #CommentText VALUES

  ( @LineId,

  isnull(@Line, N'') + isnull(SUBSTRING(@SyscomText,

  @BasePos, @AddOnLen), N''))

  SELECT @Line = NULL, @LineId = @LineId + 1,

  @BasePos = @BasePos + @AddOnLen, @BlankSpaceAdded =

  0

  END

  SELECT @Line = isnull(@Line, N'') +

  isnull(SUBSTRING(@SyscomText, @BasePos, @TextLength-@BasePos+1 ), N'')

  if LEN(@Line) < @DefinedLength and charindex(' ',

  @SyscomText, @TextLength+1 ) > 0

  BEGIN

  SELECT @Line = @Line + ' ', @BlankSpaceAdded = 1

  END

  END

  END

  END

  FETCH NEXT FROM ms_crs_syscom into @SyscomText

  END

  IF @Line is NOT NULL

  INSERT #CommentText VALUES( @LineId, @Line )

  select Text from #CommentText order by LineId

  CLOSE ms_crs_syscom

  DEALLOCATE ms_crs_syscom

  DROP TABLE #CommentText

  -- -------------------------------------

  --结束从sp_helptext提取

  -- -------------------------------------

来源:微软BI开拓者    作者:拓狼    责编:豆豆技术应用

正在加载评论...