Is there an easy way to run a search for all the stored procedures in the database to see if they are anywhere in C# code in Visual Studio?
I am using Visual Studio 2008 (C#) with SQL Server 2005. I just want to query the database and return a list of all the stored procedures (I can easily do this). Then I want to search through an entire project to find which stored procedures are being used in the code, and which ones are not.
(Ok, as I write this out, I have an idea, but it involves looking though each file one at a time, which ain't bad, but I wonder if there is a better solution).
EDIT: It seems my question was not clear enough. I want to get a list back of every stored procedure in the database that is not being called from code. I am trying to remove all the unused code and database objects, so I need to know what is not used, and then start deleting.