Re: Using Reflection to Dynamically Determine Stored Procedure Name
- From: "Tom Dacon" <tdacon@xxxxxxxxxxxxxxxx>
- Date: Fri, 6 Jun 2008 20:50:27 -0700
If you have access to the source code, there's no reason that you couldn't
just do a file system search. If that's true, I don't see the need to get
more elaborate. I've done the same thing for a body of source code that
amounts to several hundred thousands of lines of code, and it was no big
deal.
Tom Dacon
Dacon Software Consulting
"Tod Birdsall" <tbirdsall@xxxxxxxxx> wrote in message
news:963d26f3-17a6-4f8a-9c18-1f0c4e61d1e8@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
My boss has asked me to create a tool that can give us a list of
stored procedure names that are being called from each of our app's
web pages. This is an ASP.NET application that is rather large and
about 5 years old. I am not here to debate the logic of the request.
The structure of most the application is pretty standardized: We
created a business/data layer that contains methods that have the
names of the stored procedures to call as hard coded strings. The
stored procedures all begin with "USP_", so should be pretty easy to
ferret out.
My initial thought was to use reflection to start at the ASP.NET
assembly, then work my way down to the business/data layer assembly.
So the end report would tell you each namespace.class.method that
leads up to the proc and look something like:
-CompanyApp.Defaultl.aspx.cs.PageLoad()
--BizLayer.GetCustomerData()
---DataLayer.GetCustome()
----"USP_Customer_Get"
Has anyone tried to do anything like this before? Does anyone have any
suggestions on where to begin or can you point me to a tutorial on
something similar?
Thanks for any help you can provide.
Tod Birdsall
http://tod1d.net
.
- Follow-Ups:
- Re: Using Reflection to Dynamically Determine Stored Procedure Name
- From: Tod Birdsall
- Re: Using Reflection to Dynamically Determine Stored Procedure Name
- References:
- Using Reflection to Dynamically Determine Stored Procedure Name
- From: Tod Birdsall
- Using Reflection to Dynamically Determine Stored Procedure Name
- Prev by Date: Re: question on anonymous type
- Next by Date: Re: C# equivelent of VBA "with..end with" statement
- Previous by thread: Re: Using Reflection to Dynamically Determine Stored Procedure Name
- Next by thread: Re: Using Reflection to Dynamically Determine Stored Procedure Name
- Index(es):
Relevant Pages
|