我的数据库有点乱。有很多我强烈怀疑没有使用的存储过程。我可以很容易地在一个文本文件中获取他们所有的名字,每行一个名字。现在我想搜索我的所有代码文件,找出哪些被提及,更重要的是,哪些没有。
我怎么能做这种事?我正在使用 Windows 7、Visual Studio 2008 - 如果重要的话。
我的数据库有点乱。有很多我强烈怀疑没有使用的存储过程。我可以很容易地在一个文本文件中获取他们所有的名字,每行一个名字。现在我想搜索我的所有代码文件,找出哪些被提及,更重要的是,哪些没有。
我怎么能做这种事?我正在使用 Windows 7、Visual Studio 2008 - 如果重要的话。
Write your own small app (console app would do).
read your file, get the procedure-names inside a list, and then for each name search your code file, and log the name if you did not find the nam einside your code-files.
See System.IO.FileStream class for the easy (but not that fast) way of search a file.